Interface Activable

    • Method Detail

      • getState

        @NonNull
        Activable.State getState()
        Gets the piloting interface's current state.

        There is only one active piloting interface at a time on a drone.

        Returns:
        this piloting interface's current state
      • deactivate

        boolean deactivate()
        Deactivates this piloting interface.

        This will activate another piloting interface (usually the default one).

        Returns:
        true on success, false in case the piloting interface cannot be deactivated at this point