Class RongNotificationInterface

    • Constructor Detail

      • RongNotificationInterface

        RongNotificationInterface()
    • Method Detail

      • sendNotification

        @Deprecated() static void sendNotification(Context context, PushNotificationMessage message)

        Sends a notification. Both push notifications and background notifications are ultimately sent through this method.

        Parameters:
        context - The context
        message - The notification message
      • sendNotification

         static void sendNotification(Context context, PushNotificationMessage message, PushType pushType, int left)

        Sends a notification. Both push notifications and background notifications are ultimately sent through this method.

        Parameters:
        context - The context
        message - The notification message
        pushType - The push notification type
      • removeNotification

         static void removeNotification(Context context, int notificationId)
      • removeAllNotification

         static void removeAllNotification(Context context)

        Clears all push notifications for the application.

        Parameters:
        context - The context.
      • removeAllPushNotification

         static void removeAllPushNotification(Context context)

        Clears all offline push notifications. However, notifications sent from the developer backend will remain intact and will not be cleared.

        Parameters:
        context - The context.
      • removeAllPushServiceNotification

         static void removeAllPushServiceNotification(Context context)

        Clears all push notifications from the background push service. The background push service refers to the broadcast push service in the developer's backend.

        Parameters:
        context - The context.