SOSAgentAvailabilityDelegate
@protocol SOSAgentAvailabilityDelegate <NSObject>
Delegate protocol for SOSAgentAvailability.
Implement this protocol in your classes to listen for availability change events from the SOSAgentAvailability class.
-
Delegate method invoked when the
SOSAgentAvailabilitystatus has changed.Declaration
Objective-C
- (void)agentAvailability:(id)agentAvailability didChange:(SOSAgentAvailabilityStatusType)availabilityStatus;Swift
optional func agentAvailability(_ agentAvailability: Any!, didChange availabilityStatus: SOSAgentAvailabilityStatusType)Parameters
agentAvailabilityThe
SOSAgentAvailabilityinstance which fired the event.availabilityStatusThe current
SOSAgentAvailabilityStatusType. -
Delegate method invoked when the
SOSAgentAvailabilitypolling has returned an error.Declaration
Objective-C
- (void)agentAvailability:(id)agentAvailability didError:(NSError *)error;Swift
optional func agentAvailability(_ agentAvailability: Any!, didError error: Error!)Parameters
agentAvailabilitySOSAgentAvailabilityinstance which invoked the delegate method.errorNSErrorinstance describing the error.
Install in Dash
SOSAgentAvailabilityDelegate Protocol Reference