CPChatGroupParticipant

@objc
public class CPChatGroupParticipant : NSObject

This class is used to manage a participant of a chat group.

  • The service identity of this chat group participant

    Declaration

    Swift

    @objc
    public let address: String!
  • The connected status of this chat group participant

    Declaration

    Swift

    @objc
    public internal(set) var status: CPChatParticipantStatus { get }
  • Shows if this chat group participant is an administrator in the chat group

    Declaration

    Swift

    @objc
    public let admin: Bool
  • Constructs a ChatGroupParticipant class.

    Declaration

    Swift

    @objc
    public init(address: String, admin: Bool = false)

    Parameters

    address

    The service identity of the chat group participant.

    admin

    Should this group member be an administrator of the group.

  • This variable shows the server assigned unique identity of the owning chat group.

    Declaration

    Swift

    @objc
    public var groupID: String? { get }
  • Undocumented

    Declaration

    Swift

    override public var hash: Int { get }
  • Undocumented

    Declaration

    Swift

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