Contact

open class Contact : Observable<ContactEvent>
extension Contact: Equatable

Represents any user

  • id

    Declaration

    Swift

    open private(set) var id: String! { get }
  • Declaration

    Swift

    open internal(set) var callState: ContactCallState! { get }
  • Declaration

    Swift

    open internal(set) var userData: [String : Any?]? { get }
  • Checks whether the contact is inside a given group

    Declaration

    Swift

    open func inGroup(_ group: String) -> Bool
  • Checks whether the contact is online or not Note: A contact will be shown online only if it is currently in a group subscribed by the user

    Declaration

    Swift

    open func isOnline() -> Bool
  • Undocumented

    Declaration

    Swift

    open func getUsername() -> String?
  • Undocumented

    Declaration

    Swift

    open func getPhotoUrl() -> String?

Call

  • Invites Contact to a P2P Call

    Declaration

    Swift

    open func call(stream: Stream, completion: @escaping (_ error: Error?, _ call: Call?) -> Void)
  • Undocumented

    Declaration

    Swift

    open override func onEvent(_ observer: AnyObject, _ callback: @escaping ((ContactEvent) -> Void))
  • Declaration

    Swift

    public static func == (lhs: Contact, rhs: Contact) -> Bool