FileDocCategorySizeDatePackage
IState.javaAPI DocAndroid 5.1 API2015Thu Mar 12 22:22:10 GMT 2015com.android.internal.util

IState

public interface IState
{@hide} The interface for implementing states in a {@link StateMachine}

Fields Summary
static final boolean
HANDLED
Returned by processMessage to indicate the the message was processed.
static final boolean
NOT_HANDLED
Returned by processMessage to indicate the the message was NOT processed.
Constructors Summary
Methods Summary
public voidenter()
Called when a state is entered.

public voidexit()
Called when a state is exited.

public java.lang.StringgetName()
Name of State for debugging purposes.

return
name of state.

public booleanprocessMessage(android.os.Message msg)
Called when a message is to be processed by the state machine. This routine is never reentered thus no synchronization is needed as only one processMessage method will ever be executing within a state machine at any given time. This does mean that processing by this routine must be completed as expeditiously as possible as no subsequent messages will be processed until this routine returns.

param
msg to process
return
HANDLED if processing has completed and NOT_HANDLED if the message wasn't processed.