public class Nodes
Static factory for nodes.
public static Nodes INSTANCE
Static factory for nodes.
@NotNull public <A extends Activity> io.scanbot.sdk.ui.utils.navigator.Nodes.FunctionalNode.FunctionalNodeBuilder<A> node(@NotNull kotlin.jvm.functions.Function1<java.lang.Object,java.lang.Boolean> handleEventWhen)
Convenience method for creating navigation nodes.
interface NodeNavigator.NavigationNode@NotNull public <A extends Activity> io.scanbot.sdk.ui.utils.navigator.NodeNavigator.NavigationNode<A> actionNode(@NotNull kotlin.jvm.functions.Function1<java.lang.Object,java.lang.Boolean> eventMatcher, @NotNull kotlin.jvm.functions.Function2<? super A,java.lang.Object,kotlin.Unit> action)
Creates Action Node. That is - the node which performs some one-time action when navigated
to. Such nodes do not stay in history and are not replayed when class NodeNavigator state
is restored.
class NodeNavigator@NotNull
public kotlin.jvm.functions.Function1<java.lang.Object,java.lang.Boolean> key(@NotNull
java.lang.Object value)
Convenience method for creating event matcher from given value for use with .node.
This matcher matches with event equal to given value.
@NotNull
public kotlin.jvm.functions.Function1<java.lang.Object,java.lang.Boolean> key(@NotNull
java.lang.Class<?> type)
Convenience method for creating event matcher from given value for use with .node.
This matcher matches with event of same type as given class.
@NotNull
public kotlin.jvm.functions.Function1<java.lang.Object,java.lang.Boolean> anyOfTypes(@NotNull
java.util.List<? extends java.lang.Class<?>> types)
Convenience method for creating event matcher from given values for use with .node.
This matcher matches the event of same type as in the given list.
@NotNull
public kotlin.jvm.functions.Function1<java.lang.Object,java.lang.Boolean> anyOf(@NotNull
java.util.List<? extends java.lang.Object> values)
Convenience method for creating event matcher from given values for use with .node.
This matcher matches the event if event equals to at least one value from given list.