CometChat
@objc
public final class CometChat : NSObject
Undocumented
-
Undocumented
Declaration
Swift
@objc public static var isInitialised: Bool { get }
-
Undocumented
Declaration
Swift
@objc public init(appId:String, appSettings : AppSettings,onSuccess:@escaping(_ isSuccess:Bool)-> Void, onError:@escaping (_ error:CometChatException) -> Void )
-
Undocumented
See moreDeclaration
Swift
@objc public enum callStatus : Int
-
Undocumented
See moreDeclaration
Swift
@objc public enum ConversationType : Int
-
Undocumented
See moreDeclaration
Swift
@objc public enum GroupMemberScopeType : Int
-
Undocumented
See moreDeclaration
Swift
@objc public enum MemberScope : Int
-
Undocumented
See moreDeclaration
Swift
@objc public enum MessageCategory : Int
-
Undocumented
See moreDeclaration
Swift
@objc public enum MessageType : Int
-
Undocumented
See moreDeclaration
Swift
@objc public enum SubscriptionType : Int
-
Undocumented
See moreDeclaration
Swift
@objc public enum UserStatus : Int
-
Undocumented
Declaration
Swift
@objc public static func initiateCall(call: Call, onSuccess: @escaping (Call?) -> (), onError: @escaping (CometChatException?) -> ())
-
Undocumented
Declaration
Swift
@objc public static func acceptCall(sessionID: String, onSuccess: @escaping (Call?) -> (), onError: @escaping (CometChatException?) -> ())
-
Undocumented
Declaration
Swift
@objc public static func rejectCall(sessionID: String, status:CometChat.callStatus ,onSuccess: @escaping (Call?) -> (), onError: @escaping (CometChatException?) -> ())
-
Undocumented
Declaration
Swift
@objc public static func endCall(sessionID: String, onSuccess: @escaping (Call?) -> (), onError: @escaping (CometChatException?) -> ())
-
Undocumented
Declaration
Swift
@objc public static func startCall (sessionID: String, inView:UIView , userJoined :@escaping (_ onUserJoined:User?)-> Void,userLeft :@escaping (_ onUserLeft:User?)-> Void,onError :@escaping (_ error:CometChatException?)-> Void,callEnded :@escaping (_ onCallEnded:Call?)-> Void )
-
Undocumented
Declaration
Swift
@objc public static func startServices()
-
Undocumented
Declaration
Swift
@objc public static func stopServices()
-
Undocumented
Declaration
Swift
@objc public static var isCallOngoing: Bool { get }
-
Undocumented
Declaration
Swift
@objc public static var currentCall: Call? { get }
-
Undocumented
Declaration
Swift
@objc public static func getLastDeliveredMessageId() -> Int
-
Undocumented
Declaration
Swift
@objc public static func getLoggedInUser() -> User?
-
Undocumented
Declaration
Swift
@objc static public func blockUsers(_ users : [String], onSuccess : @escaping ([String : Any]) -> Void, onError : @escaping (_ error:CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func unblockUsers(_ users: [String], onSuccess : @escaping ([String : Any]) -> Void, onError : @escaping (_ error:CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc public static func isExtensionEnabled(extensionId: String) -> Bool
-
Undocumented
Declaration
Swift
@objc static public func getMessageReceipts(_ messageId : Int, onSuccess : @escaping ([MessageReceipt]) -> Void, onError : @escaping (CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUnreadMessageCountForUser(_ uid : String, hideMessagesFromBlockedUsers : Bool = false, onSuccess : @escaping([String : Any]) -> Void, onError : @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUnreadMessageCountForGroup(_ guid : String, hideMessagesFromBlockedUsers : Bool = false, onSuccess :@escaping([String : Any]) -> Void, onError: @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUnreadMessageCount(hideMessagesFromBlockedUsers : Bool = false, onSuccess: @escaping([String : Any]) -> Void, onError: @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUnreadMessageCountForAllUsers(hideMessagesFromBlockedUsers : Bool = false, onSuccess: @escaping([String : Any]) -> Void, onError: @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUnreadMessageCountForAllGroups(hideMessagesFromBlockedUsers : Bool = false, onSuccess: @escaping([String : Any]) -> Void, onError: @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUndeliveredMessageCountForAllUsers(hideMessagesFromBlockedUsers : Bool = false, onSuccess: @escaping([String : Any]) -> Void, onError: @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUndeliveredMessageCountForAllGroups(hideMessagesFromBlockedUsers : Bool = false, onSuccess: @escaping([String : Any]) -> Void, onError: @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUndeliveredMessageCountForUser(_ uid : String, hideMessagesFromBlockedUsers : Bool = false, onSuccess: @escaping([String : Any]) -> Void, onError: @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUndeliveredMessageCountForGroup(_ guid : String, hideMessagesFromBlockedUsers : Bool = false, onSuccess: @escaping([String : Any]) -> Void, onError: @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func getUndeliveredMessageCount(hideMessagesFromBlockedUsers : Bool = false, onSuccess: @escaping([String : Any]) -> Void, onError: @escaping(CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func edit(message : BaseMessage, onSuccess : @escaping (BaseMessage) -> Void, onError : @escaping(CometChatException) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func delete(messageId : Int, onSuccess : @escaping (BaseMessage) -> Void, onError : @escaping(CometChatException) -> Void)
-
Undocumented
Declaration
Swift
@objc static public func addMembersToGroup(guid : String, groupMembers : [GroupMember], bannedUIDs : [String]? = nil, onSuccess: @escaping(_ members:[String : Any])-> Void, onError: @escaping (_ error:CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc public weak static var messagedelegate: CometChatMessageDelegate?
-
Undocumented
Declaration
Swift
@objc public weak static var calldelegate: CometChatCallDelegate?
-
Undocumented
Declaration
Swift
@objc public weak static var userdelegate: CometChatUserDelegate?
-
Undocumented
Declaration
Swift
@objc public weak static var groupdelegate: CometChatGroupDelegate?
-
Undocumented
Declaration
Swift
@objc public static func updateGroup(group: Group, onSuccess: @escaping (Group) -> (), onError: @escaping (CometChatException?) -> ())
-
Undocumented
Declaration
Swift
@objc public static func deleteGroup(GUID:String, onSuccess:@escaping (_ deleteSuccess:String)->(), onError: @escaping (_ error:CometChatException?)->()) -> Void
-
Undocumented
Declaration
Swift
@objc static public func createGroup(group:Group,onSuccess:@escaping (_ Group:Group)->Void, onError: @escaping (_ error:CometChatException?)->Void) -> Void
-
Undocumented
Declaration
Swift
@objc static public func joinGroup(GUID:String, groupType:CometChat.groupType,password:String? ,onSuccess: @escaping (_ joinSuccess: Group)->() , onError: @escaping (_ error:CometChatException?)->())
-
Undocumented
Declaration
Swift
@objc static public func getGroup(GUID:String, onSuccess:@escaping (_ Group:Group)->(), onError: @escaping (_ error:CometChatException?)->()) -> Void
-
Undocumented
Declaration
Swift
@objc static public func leaveGroup(GUID:String, onSuccess:@escaping (_ leaveSuccess:String)->(), onError: @escaping (_ error:CometChatException?) -> Void) -> Void
-
Undocumented
Declaration
Swift
@objc public static func kickGroupMember(UID: String, GUID: String, onSuccess: @escaping (_ kickedSuccess:String) -> Void, onError: @escaping (CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc public static func banGroupMember(UID: String, GUID: String, onSuccess: @escaping (_ bannedSuccess:String) -> Void, onError: @escaping (CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc public static func unbanGroupMember(UID: String, GUID: String, onSuccess: @escaping (_ unbannedSuccess:String) -> Void, onError: @escaping (CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc public static func updateGroupMemberScope(UID: String, GUID: String, scope: CometChat.MemberScope, onSuccess: @escaping (_ scopeChangeSuccess:String) -> Void, onError: @escaping (CometChatException?) -> Void)
-
Undocumented
Declaration
Swift
@objc public static func login(UID: String, apiKey: String, onSuccess: @escaping (User) -> Void, onError: @escaping (CometChatException) -> Void)
-
Undocumented
Declaration
Swift
@objc public static func login(authToken: String, onSuccess: @escaping (User) -> Void, onError: @escaping (CometChatException) -> Void)
-
Undocumented
Declaration
Swift
@objc public static func logout(onSuccess: @escaping (_ Response:String) -> Void, onError: @escaping (CometChatException) -> Void)
-
Undocumented
Declaration
Swift
@objc public static func sendTextMessage(message: TextMessage, onSuccess: @escaping (TextMessage) -> (), onError: @escaping (CometChatException?) -> ())
-
Undocumented
Declaration
Swift
@objc public static func sendMediaMessage(message: MediaMessage, onSuccess: @escaping (MediaMessage) -> (), onError: @escaping (CometChatException?) -> ())
-
Undocumented
Declaration
Swift
@objc public static func sendCustomMessage(message: CustomMessage, onSuccess: @escaping (CustomMessage) -> (), onError: @escaping (CometChatException?) -> ())
-
Undocumented
Declaration
Swift
@objc public static func markAsRead(messageId: Int, receiverId: String, receiverType: CometChat.ReceiverType)
-
Undocumented
Declaration
Swift
@objc public static func markAsDelivered(messageId: Int, receiverId: String, receiverType: CometChat.ReceiverType)
-
Undocumented
Declaration
Swift
@objc public static func startTyping(indicator: TypingIndicator)
-
Undocumented
Declaration
Swift
@objc public static func endTyping(indicator: TypingIndicator)
-
Undocumented
Declaration
Swift
@objc public static func getUser(UID:String , onSuccess :@escaping (_ user : User?)->Void , onError:@escaping (_ error: CometChatException?)-> Void) -> Void
-
Undocumented
Declaration
Swift
public static func processMessage(_ message: [String : Any]) -> (BaseMessage?, CometChatException?)
-
Undocumented
Declaration
Swift
public static func getConversationFromMessage(_ baseMessage: BaseMessage) -> Conversation?