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 implementationThis is the state of the instance.
Default Implementation
Default Implementation returns uninitialized.
Declaration
Swift
var state: RVS_BTDriver_State_Machine_StateEnum { get }
-
startInit()
Default implementationStart whatever process is necessary to initialize.
Default Implementation
Default Implementation does nothing.
Declaration
Swift
func startInit()
-
connectedPreInit()
Default implementationCalled if there was a connection, before initializing.
Default Implementation
Default Implementation does nothing.
Declaration
Swift
func connectedPreInit()
-
discoveryPreInit()
Default implementationCalled if there was a discovery event, before initializing.
Default Implementation
Default Implementation does nothing.
Declaration
Swift
func discoveryPreInit()
-
abortInit()
Default implementationStop the initialization process.
Default Implementation
Default Implementation does nothing.
Declaration
Swift
func abortInit()
-
connectedPostInit()
Default implementationCalled if there was a connection, after initializing.
Default Implementation
Default Implementation does nothing.
Declaration
Swift
func connectedPostInit()