public final class NotificationGenerator
extends java.lang.Object
| 构造器和说明 |
|---|
NotificationGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clearNotification(android.content.Context context,
int id) |
static android.app.Notification.Builder |
generateBuilder(android.content.Context context,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
boolean sound,
boolean vibrate,
boolean lights) |
static android.support.v7.app.NotificationCompat.Builder |
generateCompatBuilder(android.content.Context context,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights) |
static void |
notifyCustomUINotification(android.content.Context context,
int notificationId,
android.widget.RemoteViews remoteViews,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
boolean sound,
boolean vibrate,
boolean lights) |
static void |
notifyDoubleButtonNotification(android.content.Context context,
int notificationId,
int smallIcon,
int leftbtnicon,
java.lang.String lefttext,
android.app.PendingIntent leftPendIntent,
int rightbtnicon,
java.lang.String righttext,
android.app.PendingIntent rightPendIntent,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights) |
static void |
notifyHeadUpNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
int largeIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
int leftbtnicon,
java.lang.String lefttext,
android.app.PendingIntent leftPendingIntent,
int rightbtnicon,
java.lang.String righttext,
android.app.PendingIntent rightPendingIntent,
boolean sound,
boolean vibrate,
boolean lights) |
static void |
notifyLargeImageNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
int bigPic,
boolean sound,
boolean vibrate,
boolean lights) |
static void |
notifyMailBoxNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
int largeIcon,
java.util.ArrayList<java.lang.String> messageList,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights) |
static void |
notifyMultipleLineNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights) |
static void |
notifyProgressNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights,
int max,
int progress) |
static void |
notifySimpleNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights) |
static void |
sendNotification(android.content.Context context,
int notificationId,
android.app.Notification notification) |
public static android.support.v7.app.NotificationCompat.Builder generateCompatBuilder(android.content.Context context,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights)
public static android.app.Notification.Builder generateBuilder(android.content.Context context,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
boolean sound,
boolean vibrate,
boolean lights)
public static void notifySimpleNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights)
public static void notifyMailBoxNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
int largeIcon,
java.util.ArrayList<java.lang.String> messageList,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights)
public static void notifyCustomUINotification(android.content.Context context,
int notificationId,
android.widget.RemoteViews remoteViews,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
boolean sound,
boolean vibrate,
boolean lights)
public static void notifyMultipleLineNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights)
public static void notifyProgressNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights,
int max,
int progress)
public static void notifyLargeImageNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
int bigPic,
boolean sound,
boolean vibrate,
boolean lights)
public static void notifyDoubleButtonNotification(android.content.Context context,
int notificationId,
int smallIcon,
int leftbtnicon,
java.lang.String lefttext,
android.app.PendingIntent leftPendIntent,
int rightbtnicon,
java.lang.String righttext,
android.app.PendingIntent rightPendIntent,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
boolean sound,
boolean vibrate,
boolean lights)
public static void notifyHeadUpNotification(android.content.Context context,
int notificationId,
android.app.PendingIntent pendingIntent,
int smallIcon,
int largeIcon,
java.lang.String ticker,
java.lang.String title,
java.lang.String content,
int leftbtnicon,
java.lang.String lefttext,
android.app.PendingIntent leftPendingIntent,
int rightbtnicon,
java.lang.String righttext,
android.app.PendingIntent rightPendingIntent,
boolean sound,
boolean vibrate,
boolean lights)
public static void sendNotification(android.content.Context context,
int notificationId,
android.app.Notification notification)
public static void clearNotification(android.content.Context context,
int id)