-
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 UnithandlePushMessage(PushMessage pushMessage)Handles push message. final UnitsetDevice(Device device)Sets device. final QuerySort<Member>getDEFAULT_SORT()final BooleangetIsInitialized()-
-
Method Detail
-
instance
final ChatClient instance()
-
handlePushMessage
final Unit handlePushMessage(PushMessage pushMessage)
Handles push message. If user is not connected - automatically restores last user credentials and sets user without connecting to the socket. Push message will be handled internally unless user overrides ChatNotificationHandler.onPushMessage Be sure to initialize ChatClient before calling this method!
-
setDevice
final Unit setDevice(Device device)
Sets device. Be sure to initialize ChatClient before calling this method!
-
getDEFAULT_SORT
final QuerySort<Member> getDEFAULT_SORT()
-
getIsInitialized
final Boolean getIsInitialized()
-
-
-
-