-
public interface PushPreferencesListenerListener for push notification preference changes.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonChannelPushPreferenceSet(String cid, PushPreferenceLevel level, Result<PushPreference> result)Called when the push notification preference is updated for a given channel. abstract UnitonChannelPushNotificationsSnoozed(String cid, Date until, Result<PushPreference> result)Called when push notifications are snoozed for a given channel until a specified time. -
-
Method Detail
-
onChannelPushPreferenceSet
abstract Unit onChannelPushPreferenceSet(String cid, PushPreferenceLevel level, Result<PushPreference> result)
Called when the push notification preference is updated for a given channel.
- Parameters:
cid- The full channel ID (e.g., "messaging:123").level- The level at which the preference is set (user, channel, or channel group).result- The result of the update operation, containing the updated PushPreference on success or an error on failure.
-
onChannelPushNotificationsSnoozed
abstract Unit onChannelPushNotificationsSnoozed(String cid, Date until, Result<PushPreference> result)
Called when push notifications are snoozed for a given channel until a specified time.
- Parameters:
cid- The full channel ID (e.g., "messaging:123").until- The Date until which push notifications are snoozed.result- The result of the snooze operation, containing the updated PushPreference on success or an error on failure.
-
-
-
-