RVS_BTDriver_ServiceSubscriberProtocol
public protocol RVS_BTDriver_ServiceSubscriberProtocol : RVS_BTDriver_SubscriberProtocol
-
REQUIRED: Error reporting method.
Declaration
Swift
func service(_ service: RVS_BTDriver_ServiceProtocol, encounteredThisError: RVS_BTDriver.Errors)
Parameters
service
The
RVS_BTDriver_ServiceProtocol
instance that encountered the error.encounteredThisError
The error that was encountered.
-
OPTIONAL: Called When a property is added to the main list.
Declaration
Swift
func service(_ service: RVS_BTDriver_ServiceProtocol, propertyAdded: RVS_BTDriver_PropertyProtocol)
Parameters
service
The
RVS_BTDriver_ServiceProtocol
instance that has the service.propertyAdded
The
RVS_BTDriver_PropertyProtocol
property that was added. -
serviceStatusUpdate(_:)
Default implementationOPTIONAL: Called to indicate that the service’s status should be checked.
It may be called frequently, and there may not be any changes. This is mereley a “make you aware of the POSSIBILITY of a change” call.
This is optional, and is NOT guaranteed to be called in the main thread.
Default Implementation
Default does nothing.
Declaration
Swift
func serviceStatusUpdate(_ service: RVS_BTDriver_ServiceProtocol)
Parameters
service
The
RVS_BTDriver_ServiceProtocol
instance calling this. -
propertyStatusUpdate(_:property:)
Default implementationOPTIONAL: Called to indicate that a property’s status should be checked.
It may be called frequently, and there may not be any changes. This is mereley a “make you aware of the POSSIBILITY of a change” call.
This is optional, and is NOT guaranteed to be called in the main thread.
Default Implementation
Default does nothing.
Declaration
Swift
func propertyStatusUpdate(_ service: RVS_BTDriver_ServiceProtocol, property: RVS_BTDriver_PropertyProtocol)
Parameters
service
The
RVS_BTDriver_ServiceProtocol
instance calling this.property
The
RVS_BTDriver_PropertyProtocol
instance that changed state.
-
device(_:propertyAdded:)
Extension methodDefault does nothing.
Declaration
Swift
public func device(_ service: RVS_BTDriver_ServiceProtocol, propertyAdded: RVS_BTDriver_ServiceProtocol)