public class

StateMachine.State

extends java.lang.Object

 java.lang.Object

↳androidx.leanback.util.StateMachine.State

Summary

Constructors
publicState(java.lang.String name)

Create a State which is not branch start and a branch end.

publicState(java.lang.String name, boolean branchStart, boolean branchEnd)

Create a State

Methods
public final intgetStatus()

Get status, return one of StateMachine.STATUS_ZERO, StateMachine.STATUS_INVOKED.

public voidrun()

Run State, Subclass may override.

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public State(java.lang.String name)

Create a State which is not branch start and a branch end.

public State(java.lang.String name, boolean branchStart, boolean branchEnd)

Create a State

Parameters:

branchStart: True if can run all out going transitions or false execute the first out going transition.
branchEnd: True if wait all incoming transitions executed or false only need one of the transition executed.

Methods

public java.lang.String toString()

public void run()

Run State, Subclass may override.

public final int getStatus()

Get status, return one of StateMachine.STATUS_ZERO, StateMachine.STATUS_INVOKED.

Returns:

Status of the State.