-
- All Implemented Interfaces:
public class ChatClient.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private VersionPrefixHeaderVERSION_PREFIX_HEADERprivate BooleanOFFLINE_SUPPORT_ENABLEDpublic final QuerySorter<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 UnitdismissChannelNotifications(String channelType, String channelId)Dismiss notifications from a given channelType and channelId. final UnitsetDevice(Device device)Sets device. final VersionPrefixHeadergetVERSION_PREFIX_HEADER()Header used to track which SDK is being used. final UnitsetVERSION_PREFIX_HEADER(VersionPrefixHeader VERSION_PREFIX_HEADER)Header used to track which SDK is being used. final BooleangetOFFLINE_SUPPORT_ENABLED()Flag used to track whether offline support is enabled. final UnitsetOFFLINE_SUPPORT_ENABLED(Boolean OFFLINE_SUPPORT_ENABLED)Flag used to track whether offline support is enabled. final BooleanisInitialized()-
-
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 NotificationHandler.onPushMessage Be sure to initialize ChatClient before calling this method!
-
dismissChannelNotifications
final Unit dismissChannelNotifications(String channelType, String channelId)
Dismiss notifications from a given channelType and channelId. Be sure to initialize ChatClient before calling this method!
- Parameters:
channelType- String that represent the channel type of the channel you want to dismiss notifications.channelId- String that represent the channel id of the channel you want to dismiss notifications.
-
setDevice
final Unit setDevice(Device device)
Sets device. Be sure to initialize ChatClient before calling this method!
-
getVERSION_PREFIX_HEADER
final VersionPrefixHeader getVERSION_PREFIX_HEADER()
Header used to track which SDK is being used.
-
setVERSION_PREFIX_HEADER
final Unit setVERSION_PREFIX_HEADER(VersionPrefixHeader VERSION_PREFIX_HEADER)
Header used to track which SDK is being used.
-
getOFFLINE_SUPPORT_ENABLED
final Boolean getOFFLINE_SUPPORT_ENABLED()
Flag used to track whether offline support is enabled.
-
setOFFLINE_SUPPORT_ENABLED
final Unit setOFFLINE_SUPPORT_ENABLED(Boolean OFFLINE_SUPPORT_ENABLED)
Flag used to track whether offline support is enabled.
-
isInitialized
final Boolean isInitialized()
-
-
-
-