PIN: add callback on LockScreenEntryPoint

This commit is contained in:
ganfra 2023-10-25 11:27:19 +02:00
parent 54cd62ab76
commit 2cb0addd3e
4 changed files with 46 additions and 1 deletions

View file

@ -145,7 +145,13 @@ class FtueFlowNode @AssistedInject constructor(
analyticsEntryPoint.createNode(this, buildContext)
}
NavTarget.LockScreenSetup -> {
val callback = object : LockScreenEntryPoint.Callback {
override fun onSetupCompleted() {
lifecycleScope.launch { moveToNextStep() }
}
}
lockScreenEntryPoint.nodeBuilder(this, buildContext)
.callback(callback)
.target(LockScreenEntryPoint.Target.Setup)
.build()
}