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
serviceThe
RVS_BTDriver_ServiceProtocolinstance that encountered the error.encounteredThisErrorThe 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
serviceThe
RVS_BTDriver_ServiceProtocolinstance that has the service.propertyAddedThe
RVS_BTDriver_PropertyProtocolproperty 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
serviceThe
RVS_BTDriver_ServiceProtocolinstance 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
serviceThe
RVS_BTDriver_ServiceProtocolinstance calling this.propertyThe
RVS_BTDriver_PropertyProtocolinstance that changed state.
-
device(_:propertyAdded:)Extension methodDefault does nothing.
Declaration
Swift
public func device(_ service: RVS_BTDriver_ServiceProtocol, propertyAdded: RVS_BTDriver_ServiceProtocol)
View on GitHub
RVS_BTDriver_ServiceSubscriberProtocol Protocol Reference