Class RongNotificationInterface

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void sendNotification(Context context, PushNotificationMessage message) 发送通知。推送通知和后台通知最终都是通过这个方法发送notification。
      static void sendNotification(Context context, PushNotificationMessage message, PushType pushType, int left) 发送通知。推送通知和后台通知最终都是通过这个方法发送notification。
      static void removeNotification(Context context, int notificationId)
      static Notification createNotification(Context context, String title, PendingIntent pendingIntent, String content, RongNotificationInterface.SoundType soundType, String channelId)
      static void removeAllNotification(Context context) 清除应用的所有推送通知。
      static void removeAllPushNotification(Context context) 清除所有离线消息的推送通知。也就是说,如果是从开发者后台发送推送服务的通知,仍然会保留,不会清除。
      static void removeAllPushServiceNotification(Context context) 清除所有后台推送服务的推送通知。后台推送服务,是指开发者后台的广播推送服务。
      static Notification createNotification(Context context, String title, PendingIntent pendingIntent, String content, RongNotificationInterface.SoundType soundType, boolean isShowDetail)
      static void setNotificationSound(Uri uri)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RongNotificationInterface

        RongNotificationInterface()
    • Method Detail

      • sendNotification

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

        发送通知。推送通知和后台通知最终都是通过这个方法发送notification。

        Parameters:
        context - 上下文
        message - 通知信息
      • sendNotification

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

        发送通知。推送通知和后台通知最终都是通过这个方法发送notification。

        Parameters:
        context - 上下文
        message - 通知信息
        pushType - 推送类型
      • removeNotification

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

         static void removeAllNotification(Context context)

        清除应用的所有推送通知。

        Parameters:
        context - 上下文。
      • removeAllPushNotification

         static void removeAllPushNotification(Context context)

        清除所有离线消息的推送通知。也就是说,如果是从开发者后台发送推送服务的通知,仍然会保留,不会清除。

        Parameters:
        context - 上下文。
      • removeAllPushServiceNotification

         static void removeAllPushServiceNotification(Context context)

        清除所有后台推送服务的推送通知。后台推送服务,是指开发者后台的广播推送服务。

        Parameters:
        context - 上下文。