# RongNotificationInterface

public class RongNotificationInterface

FCM推送透传弹出通知栏

## Constructors

RongNotificationInterface
Link copied to clipboard
public void RongNotificationInterface()

## Types

SoundType
Link copied to clipboard
public enum SoundType

## Functions

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