StateTransitionContext


Object Hierarchy:

Object hierarchy for StateTransitionContext

Description:

[ CCode ( has_type_id = false ) ]
[ Compact ]
[ Version ( since = "1.2" ) ]
public class StateTransitionContext

`DexStateTransitionContext` is an opaque per-callback structure with information and state access for a [struct@Dex.

StateTransition] callback.

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

[method@Dex.StateTransitionContext.get_from] and [method@Dex.StateTransitionContext.get_to] return the declared edge that caused the callback to run. [method@Dex.StateTransitionContext.get_state] and [method@Dex.StateTransitionContext.set_state] access the real state in the [class@Dex.StateMachine]. Use [method@Dex.StateTransitionContext.continue_to] to follow another declared edge before queued transition requests are processed.


Namespace: Dex
Package: libdex-1

Content:

Methods: