CPPresenceSource

@objc
public class CPPresenceSource : NSObject

This class represents a presence source. A presence source represents the presence status of a particular client.

  • The presentity status details of this presence source.

    Declaration

    Swift

    @objc
    public internal(set) var activity: PresenceActivity! { get }
  • The duration in seconds for which this source is active without refresh.

    Declaration

    Swift

    @objc
    public internal(set) var duration: Int { get }
  • This method is used to update the presentity status details for this particular PresenceSource.

    Declaration

    Swift

    @objc
    public func updateActivity(activity: PresenceActivity, completion: @escaping CreatePresenceSourceCompletionBlock)

    Parameters

    activity

    The updated PresenceActivity to apply to this presence source.

    compeletion

    The code block to execute upon activity update completion.