public class AlertNotificationFactory extends Object
Constructor and Description |
---|
AlertNotificationFactory() |
Modifier and Type | Method and Description |
---|---|
static Notification |
createAlertNotification(Context context,
String contentTitle,
String contentText,
String ticker,
PendingIntent pendingIntent,
int smallIcon,
int largeIcon,
boolean alertSignals,
boolean autocancel,
boolean ongoing,
boolean onlyAlertOnce) |
static NotificationCompat.Builder |
createAlertNotificationBuilder(Context context,
String contentTitle,
String contentText,
String ticker,
PendingIntent pendingIntent,
int smallIcon,
int largeIcon,
boolean alertSignals,
boolean autocancel,
boolean ongoing,
boolean onlyAlertOnce) |
static Notification |
createProgressNotification(Context context,
String contentTitle,
String contentText,
String ticker,
PendingIntent pendingIntent,
int smallIcon,
int largeIcon,
boolean alertSignals,
boolean autocancel,
boolean ongoing,
boolean onlyAlertOnce,
int maxProgress,
int progress,
boolean indeterminate) |
static NotificationCompat.Builder |
createProgressNotificationBuilder(Context context,
String contentTitle,
String contentText,
String ticker,
PendingIntent pendingIntent,
int smallIcon,
int largeIcon,
boolean alertSignals,
boolean autocancel,
boolean ongoing,
boolean onlyAlertOnce,
int maxProgress,
int progress,
boolean indeterminate) |
static void |
showAlertNotification(Context context,
Notification notif,
int notifId) |
public static NotificationCompat.Builder createAlertNotificationBuilder(Context context, String contentTitle, String contentText, String ticker, PendingIntent pendingIntent, int smallIcon, int largeIcon, boolean alertSignals, boolean autocancel, boolean ongoing, boolean onlyAlertOnce)
public static NotificationCompat.Builder createProgressNotificationBuilder(Context context, String contentTitle, String contentText, String ticker, PendingIntent pendingIntent, int smallIcon, int largeIcon, boolean alertSignals, boolean autocancel, boolean ongoing, boolean onlyAlertOnce, int maxProgress, int progress, boolean indeterminate)
public static Notification createAlertNotification(Context context, String contentTitle, String contentText, String ticker, PendingIntent pendingIntent, int smallIcon, int largeIcon, boolean alertSignals, boolean autocancel, boolean ongoing, boolean onlyAlertOnce)
public static Notification createProgressNotification(Context context, String contentTitle, String contentText, String ticker, PendingIntent pendingIntent, int smallIcon, int largeIcon, boolean alertSignals, boolean autocancel, boolean ongoing, boolean onlyAlertOnce, int maxProgress, int progress, boolean indeterminate)
public static void showAlertNotification(Context context, Notification notif, int notifId)