-
public class ChatClient.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final QuerySort<Member>DEFAULT_SORTprivate final BooleanisInitializedpublic final static ChatClient.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final ChatClientinstance()final BooleanisValidRemoteMessage(RemoteMessage remoteMessage, NotificationConfig defaultNotificationConfig)Checks if remote message can be handled final UnithandleRemoteMessage(RemoteMessage remoteMessage)Handles remote message. final UnitsetFirebaseToken(String token)Sets Firebase token. final QuerySort<Member>getDEFAULT_SORT()final BooleangetIsInitialized()-
-
Method Detail
-
instance
final ChatClient instance()
-
isValidRemoteMessage
final Boolean isValidRemoteMessage(RemoteMessage remoteMessage, NotificationConfig defaultNotificationConfig)
Checks if remote message can be handled
-
handleRemoteMessage
final Unit handleRemoteMessage(RemoteMessage remoteMessage)
Handles remote message. If user is not connected - automatically restores last user credentials and sets user without connecting to the socket. Remote message will be handled internally unless user overrides ChatNotificationHandler.onFirebaseMessage Be sure to initialize ChatClient before calling this method!
-
setFirebaseToken
final Unit setFirebaseToken(String token)
Sets Firebase token. Be sure to initialize ChatClient before calling this method!
-
getDEFAULT_SORT
final QuerySort<Member> getDEFAULT_SORT()
-
getIsInitialized
final Boolean getIsInitialized()
-
-
-
-