Mute Notification
Overview#
Mute notifications allow users to control their notification preferences. Users can enable or disable mute settings globally or for specific chats. This feature provides flexibility in managing interruptions.
Enable/Disable Global Mute Settings#
Users can enable or disable global mute settings using the below method.
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| isMuteStatus | boolean | true enables mute notifications and false disables them |
Check Mute Notification Status#
To Retrieve the current mute notification status using the following method.
- Java
- Kotlin
Update Chat Mute Status#
To Mute specific or multiple chats using the following method:
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| jidList | List<String> | List of chat JIDs to be muted or unmuted. |
| muteStatus | boolean | true to mute the specified chats, false to unmute them. |
Note: Mute-related events are observed through callbacks. For more information on how to handle mute settings updates, check the callback details here.
caution
FlyCore.updateChatMuteStatus method was deprecated and will be removed in the future release. migrate to ChatManager.updateChatMuteStatus method to update mute chats.
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| JID | String | jid of the chat user/ group |
| MUTE_STATUS | boolean | true, if you want to mute notifications for the chat |
caution
FlyCore.updateChatMuteStatus method was deprecated and will be removed in the future release. migrate to ChatManager.updateChatMuteStatus method to update mute chats.
- Java
- Kotlin
| Argument | Type | Description |
|---|---|---|
| JID | String | jid of the chat user/ group |
| MUTE_STATUS | boolean | true, if you want to mute notifications for the chat |