PIN: add callback on LockScreenEntryPoint

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

View File

@@ -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,