RVS_BTDriverCommunicatorTools
internal protocol RVS_BTDriverCommunicatorTools
This protocol allows aggregated instances to report stuff through the main driver, without breaking the fourth wall.
-
This method will “kick the can” up to the driver, where the error will finally be sent to the delegate. This is required.
Declaration
Swift
func reportThisError(_ error: RVS_BTDriver.Errors)Parameters
errorThe error to be sent to the delegate.
-
sendInterfaceUpdate(_:)Default implementationThis method will send the driver delegate an update event, on behalf of a interface. This is optional.
Default Implementation
The default implementation does nothing.
Declaration
Swift
func sendInterfaceUpdate(_ interface: RVS_BTDriver_InterfaceProtocol)Parameters
interfaceThe interface that wants to send an update.
-
sendDeviceUpdate(_:)Default implementationThis method will send the driver delegate an update event, on behalf of a device. This is optional.
Default Implementation
The default implementation does nothing.
Declaration
Swift
func sendDeviceUpdate(_ device: RVS_BTDriver_Device)Parameters
deviceThe device that wants to send an update.
View on GitHub
RVS_BTDriverCommunicatorTools Protocol Reference