RVS_BTDriver_State_Machine

internal protocol RVS_BTDriver_State_Machine

This protocol is an optional protocol that implements a “state machine,” where an instance can go from “unitialized,” to “initialized.”

  • state Default implementation

    This is the state of the instance.

    Default Implementation

    Default Implementation returns uninitialized.

    Declaration

    Swift

    var state: RVS_BTDriver_State_Machine_StateEnum { get }
  • startInit() Default implementation

    Start whatever process is necessary to initialize.

    Default Implementation

    Default Implementation does nothing.

    Declaration

    Swift

    func startInit()
  • connectedPreInit() Default implementation

    Called if there was a connection, before initializing.

    Default Implementation

    Default Implementation does nothing.

    Declaration

    Swift

    func connectedPreInit()
  • discoveryPreInit() Default implementation

    Called if there was a discovery event, before initializing.

    Default Implementation

    Default Implementation does nothing.

    Declaration

    Swift

    func discoveryPreInit()
  • abortInit() Default implementation

    Stop the initialization process.

    Default Implementation

    Default Implementation does nothing.

    Declaration

    Swift

    func abortInit()
  • connectedPostInit() Default implementation

    Called if there was a connection, after initializing.

    Default Implementation

    Default Implementation does nothing.

    Declaration

    Swift

    func connectedPostInit()