org.firstinspires.ftc.robotcore.external

## Interface State

-     public interface State

  A state for a given state machine. Implement this interface to define actions to happen upon transitions into and out of a given state.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onEnter(Event event)` Called by the framework when a state is entered.
    `void` | `onExit(Event event)` Called by the framework when a state is exited.

- - ### Method Detail

    - #### onEnter

          void onEnter(Event event)

      Called by the framework when a state is entered.
      Parameters:
        `event` - The event that generated the transition.

    - #### onExit

          void onExit(Event event)

      Called by the framework when a state is exited.
      Parameters:
        `event` - The event that generated the transition.