CPPresenceDelegate

@objc
public protocol CPPresenceDelegate

Informs about the change on the Presence Activities

  • This method will be called when a PresentityList changes.

    Declaration

    Swift

    @objc
    func listChanged(presentityList: CPPresentityList)

    Parameters

    presentity

    The added Presentity object.

  • This method will be called when a subscription to a particular presentity list expires.

    Declaration

    Swift

    @objc
    func subscriptionExpired(presentityListHandle: CPPresentityListHandle)

    Parameters

    presentityListHandle

    Opaque handle identifying a presentity list.

  • This method will be called when the status of a Presentity changes.

    Declaration

    Swift

    @objc
    func statusChanged(presentity: CPPresentity)

    Parameters

    presentityListHandle

    Opaque handle identifying a presentity list.

    presentity

    The updated Presentity object.