|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use NotificationCompat.Builder | |
---|---|
android.support.v4.app | Support android.app classes to assist with development of applications for android API level 4 or later. |
Uses of NotificationCompat.Builder in android.support.v4.app |
---|
Methods in android.support.v4.app that return NotificationCompat.Builder | |
---|---|
NotificationCompat.Builder |
NotificationCompat.Builder.addAction(int icon,
CharSequence title,
android.app.PendingIntent intent)
Add an action to this notification. |
NotificationCompat.Builder |
NotificationCompat.Builder.setAutoCancel(boolean autoCancel)
Setting this flag will make it so the notification is automatically canceled when the user clicks it in the panel. |
NotificationCompat.Builder |
NotificationCompat.Builder.setContent(android.widget.RemoteViews views)
Supply a custom RemoteViews to use instead of the standard one. |
NotificationCompat.Builder |
NotificationCompat.Builder.setContentInfo(CharSequence info)
Set the large text at the right-hand side of the notification. |
NotificationCompat.Builder |
NotificationCompat.Builder.setContentIntent(android.app.PendingIntent intent)
Supply a PendingIntent to send when the notification is clicked. |
NotificationCompat.Builder |
NotificationCompat.Builder.setContentText(CharSequence text)
Set the text (second row) of the notification, in a standard notification. |
NotificationCompat.Builder |
NotificationCompat.Builder.setContentTitle(CharSequence title)
Set the title (first row) of the notification, in a standard notification. |
NotificationCompat.Builder |
NotificationCompat.Builder.setDefaults(int defaults)
Set the default notification options that will be used. |
NotificationCompat.Builder |
NotificationCompat.Builder.setDeleteIntent(android.app.PendingIntent intent)
Supply a PendingIntent to send when the notification is cleared by the user
directly from the notification panel. |
NotificationCompat.Builder |
NotificationCompat.Builder.setFullScreenIntent(android.app.PendingIntent intent,
boolean highPriority)
An intent to launch instead of posting the notification to the status bar. |
NotificationCompat.Builder |
NotificationCompat.Builder.setLargeIcon(android.graphics.Bitmap icon)
Set the large icon that is shown in the ticker and notification. |
NotificationCompat.Builder |
NotificationCompat.Builder.setLights(int argb,
int onMs,
int offMs)
Set the argb value that you would like the LED on the device to blnk, as well as the rate. |
NotificationCompat.Builder |
NotificationCompat.Builder.setNumber(int number)
Set the large number at the right-hand side of the notification. |
NotificationCompat.Builder |
NotificationCompat.Builder.setOngoing(boolean ongoing)
Set whether this is an ongoing notification. |
NotificationCompat.Builder |
NotificationCompat.Builder.setOnlyAlertOnce(boolean onlyAlertOnce)
Set this flag if you would only like the sound, vibrate and ticker to be played if the notification is not already showing. |
NotificationCompat.Builder |
NotificationCompat.Builder.setPriority(int pri)
Set the relative priority for this notification. |
NotificationCompat.Builder |
NotificationCompat.Builder.setProgress(int max,
int progress,
boolean indeterminate)
Set the progress this notification represents, which may be represented as a ProgressBar . |
NotificationCompat.Builder |
NotificationCompat.Builder.setSmallIcon(int icon)
Set the small icon to use in the notification layouts. |
NotificationCompat.Builder |
NotificationCompat.Builder.setSmallIcon(int icon,
int level)
A variant of setSmallIcon(int) that takes an additional
level parameter for when the icon is a LevelListDrawable . |
NotificationCompat.Builder |
NotificationCompat.Builder.setSound(android.net.Uri sound)
Set the sound to play. |
NotificationCompat.Builder |
NotificationCompat.Builder.setSound(android.net.Uri sound,
int streamType)
Set the sound to play. |
NotificationCompat.Builder |
NotificationCompat.Builder.setStyle(NotificationCompat.Style style)
Add a rich notification style to be applied at build time. |
NotificationCompat.Builder |
NotificationCompat.Builder.setSubText(CharSequence text)
Set the third line of text in the platform notification template. |
NotificationCompat.Builder |
NotificationCompat.Builder.setTicker(CharSequence tickerText)
Set the text that is displayed in the status bar when the notification first arrives. |
NotificationCompat.Builder |
NotificationCompat.Builder.setTicker(CharSequence tickerText,
android.widget.RemoteViews views)
Set the text that is displayed in the status bar when the notification first arrives, and also a RemoteViews object that may be displayed instead on some devices. |
NotificationCompat.Builder |
NotificationCompat.Builder.setUsesChronometer(boolean b)
Show the Notification.when field as a stopwatch. |
NotificationCompat.Builder |
NotificationCompat.Builder.setVibrate(long[] pattern)
Set the vibration pattern to use. |
NotificationCompat.Builder |
NotificationCompat.Builder.setWhen(long when)
Set the time that the event occurred. |
Methods in android.support.v4.app with parameters of type NotificationCompat.Builder | |
---|---|
void |
NotificationCompat.Style.setBuilder(NotificationCompat.Builder builder)
|
Constructors in android.support.v4.app with parameters of type NotificationCompat.Builder | |
---|---|
NotificationCompat.BigPictureStyle(NotificationCompat.Builder builder)
|
|
NotificationCompat.BigTextStyle(NotificationCompat.Builder builder)
|
|
NotificationCompat.InboxStyle(NotificationCompat.Builder builder)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |