Package ai.nexconn.chatui.notification
Class NotificationUtil
-
- All Implemented Interfaces:
public class NotificationUtilCreated by jiangecho on 2016/11/29.
-
-
Method Summary
Modifier and Type Method Description static NotificationUtilgetInstance()voidshowNotification(Context context, String title, String content, PendingIntent pendingIntent, int notificationId, int defaults)NotificationChannelgetDefaultChannel(Context context)voidshowNotification(Context context, String title, String content, PendingIntent intent, int notificationId)voidclearNotification(Context context, int notificationId)intgetRingerMode(Context context)-
-
Method Detail
-
getInstance
static NotificationUtil getInstance()
-
showNotification
void showNotification(Context context, String title, String content, PendingIntent pendingIntent, int notificationId, int defaults)
- Parameters:
context- the contexttitle- the notification titlecontent- the notification contentpendingIntent- PendingIntentnotificationId- the notification IDdefaults- notification defaults controlling sound/vibrate/lights, maps to Builder.
-
getDefaultChannel
NotificationChannel getDefaultChannel(Context context)
-
showNotification
void showNotification(Context context, String title, String content, PendingIntent intent, int notificationId)
-
clearNotification
void clearNotification(Context context, int notificationId)
-
getRingerMode
int getRingerMode(Context context)
-
-
-
-