SOSAgentAvailabilityDelegate Protocol Reference

Conforms to NSObject
Declared in SOSAgentAvailability.h

Overview

Delegate protocol for SOSAgentAvailability.

Implement this protocol in your classes to listen for availability change events from the SOSAgentAvailability class.

– agentAvailability:didChange:

Delegate method invoked when the SOSAgentAvailability status has changed.

- (void)agentAvailability:(__weak id)agentAvailability didChange:(SOSAgentAvailabilityStatusType)availabilityStatus

Parameters

agentAvailability

The SOSAgentAvailability instance which fired the event.

availabilityStatus

The current SOSAgentAvailabilityStatusType.

Declared In

SOSAgentAvailability.h

– agentAvailability:didError:

Delegate method invoked when the SOSAgentAvailability polling has returned an error.

- (void)agentAvailability:(__weak id)agentAvailability didError:(NSError *)error

Parameters

agentAvailability

SOSAgentAvailability instance which invoked the delegate method.

error

NSError instance describing the error.

Declared In

SOSAgentAvailability.h