CPPresentity

@objc
public class CPPresentity : NSObject

Presentity object. Manages user’s presentity activity.

  • The userID of the presentity

    Declaration

    Swift

    @objc
    public let userID: String!
  • The presentity status details.

    Declaration

    Swift

    @objc
    public internal(set) var activity: PresenceActivity! { get }
  • Create a Presentity object having the specified userID.

    Declaration

    Swift

    @objc
    public init(userID: String)
  • Hash value of the Presentity Class

    Declaration

    Swift

    override public var hash: Int { get }
  • Checks whether two presentity objects are for the same user.

    Declaration

    Swift

    override public func isEqual(_ object: Any?) -> Bool

    Parameters

    object

    Should be Presentity object, otherwise returns false

    Return Value

    True if they are same