PIN: add callback on LockScreenEntryPoint
This commit is contained in:
parent
54cd62ab76
commit
2cb0addd3e
4 changed files with 46 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ package io.element.android.features.lockscreen.api
|
|||
|
||||
import com.bumble.appyx.core.modality.BuildContext
|
||||
import com.bumble.appyx.core.node.Node
|
||||
import com.bumble.appyx.core.plugin.Plugin
|
||||
import io.element.android.libraries.architecture.FeatureEntryPoint
|
||||
|
||||
interface LockScreenEntryPoint : FeatureEntryPoint {
|
||||
|
|
@ -25,10 +26,15 @@ interface LockScreenEntryPoint : FeatureEntryPoint {
|
|||
fun nodeBuilder(parentNode: Node, buildContext: BuildContext): NodeBuilder
|
||||
|
||||
interface NodeBuilder {
|
||||
fun callback(callback: Callback): NodeBuilder
|
||||
fun target(target: Target): NodeBuilder
|
||||
fun build(): Node
|
||||
}
|
||||
|
||||
interface Callback: Plugin {
|
||||
fun onSetupCompleted()
|
||||
}
|
||||
|
||||
enum class Target {
|
||||
Settings,
|
||||
Setup,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue