Struct

DexStateTransitionContext

unstable since: 1.2

Description [src]

struct DexStateTransitionContext {
  /* No available fields */
}

DexStateTransitionContext is an opaque per-callback structure with information and state access for a DexStateTransition callback.

It is only valid for the duration of the callback and must not be stored.

dex_state_transition_context_get_from() and dex_state_transition_context_get_to() return the declared edge that caused the callback to run. dex_state_transition_context_get_state() and dex_state_transition_context_set_state() access the real state in the DexStateMachine. Use dex_state_transition_context_continue_to() to follow another declared edge before queued transition requests are processed.

Available since: 1.2

Instance methods

dex_state_transition_context_continue_to

Attempts to continue from the current transition to target immediately.

unstable since: 1.2

dex_state_transition_context_get_from

Gets the source state for the transition edge being executed.

unstable since: 1.2

dex_state_transition_context_get_state

Gets the real current state from the DexStateMachine.

unstable since: 1.2

dex_state_transition_context_get_to

Gets the target state for the transition edge being executed.

unstable since: 1.2

dex_state_transition_context_set_state

Sets the real current state in the DexStateMachine.

unstable since: 1.2

dex_state_transition_context_wait_for_interrupt

Creates a future that resolves when the active transition context is interrupted.

unstable since: 1.2