Package 

Interface PushPreferencesListener

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onChannelPushPreferenceSet(String cid, PushPreferenceLevel level, Result<PushPreference> result) Called when the push notification preference is updated for a given channel.
      abstract Unit onChannelPushNotificationsSnoozed(String cid, Date until, Result<PushPreference> result) Called when push notifications are snoozed for a given channel until a specified time.
      abstract Unit onChannelChatPreferencesSet(String cid, ChatPreferences preferences, Result<PushPreference> result) Called when per-category chat preferences are set for a given channel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • onChannelChatPreferencesSet

         abstract Unit onChannelChatPreferencesSet(String cid, ChatPreferences preferences, Result<PushPreference> result)

        Called when per-category chat preferences are set for a given channel.

        Parameters:
        cid - The full channel ID (e.g., "messaging:123").
        preferences - The ChatPreferences applied to the channel.
        result - The result of the update operation, containing the updated PushPreference on success or an error on failure.