ChatPushManager class Null safety
The message push configuration options.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
disableOfflinePush(
{required int start, required int end}) → Future< void> - Do not push the offline messages within the specified time period (24-hour clock).
-
enableOfflinePush(
) → Future< void> - Turns on the push notification.
-
fetchConversationSilentMode(
{required String conversationId, required ChatConversationType type}) → Future< ChatSilentModeResult> - Gets the DND setting of the special conversation.
-
fetchPreferredNotificationLanguage(
) → Future< String?> - Gets the push translation language set by the user.
-
fetchPushConfigsFromServer(
) → Future< ChatPushConfigs> - Gets the push configurations from the server.
-
fetchSilentModeForAll(
) → Future< ChatSilentModeResult> - Gets the DND normal settings of the current login user.
-
fetchSilentModeForConversations(
List< ChatConversation> conversations) → Future<Map< String, ChatSilentModeResult> > - Obtain the DND Settings of specified conversations in batches.
-
getNoPushGroupsFromCache(
) → Future< List< String> > - Gets the list of groups which have blocked the push notification.
-
getNoPushUsersFromCache(
) → Future< List< String> > - Gets the list of users which have blocked the push notification.
-
getPushConfigsFromCache(
) → Future< ChatPushConfigs?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
removeConversationSilentMode(
{required String conversationId, required ChatConversationType type}) → Future< void> - Remove the setting of offline push notification type for the special conversation. After clearing, the session follows the Settings of the current logged-in user {@link ChatPushManager#setSilentModeForAll(ChatSilentModeParam)}.
-
setConversationSilentMode(
{required String conversationId, required ChatConversationType type, required ChatSilentModeParam param}) → Future< void> - Set offline push notification type for the special conversation.
-
setPreferredNotificationLanguage(
String languageCode) → Future< void> - Set user push translation language.
-
setSilentModeForAll(
{required ChatSilentModeParam param}) → Future< void> - Set the DND normal settings for the current login user.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAPNsDeviceToken(
String token) → Future< void> - Updates the APNs push token.
-
updateFCMPushToken(
String token) → Future< void> - Updates the FCM push token.
-
updateHMSPushToken(
String token) → Future< void> - Updates the HMS push token.
-
updatePushDisplayStyle(
DisplayStyle displayStyle) → Future< void> - Updates the push message style. The default value is {@link DisplayStyle#Simple}.
-
updatePushNickname(
String nickname) → Future< void> - Updates the push display nickname of the current user.
-
updatePushServiceForGroup(
{required List< String> groupIds, required bool enablePush}) → Future<void> - Sets whether to turn on or turn off the push notification for the the specified groups.
-
updatePushServiceFroUsers(
{required List< String> userIds, required bool enablePush}) → Future<void> - Sets whether to turn on or turn off the push notification for the the specified users.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited