android.app
Class Notification.Builder
java.lang.Object
android.app.Notification.Builder
- Enclosing class:
- Notification
public static class Notification.Builder
- extends Object
|
Method Summary |
Notification.Builder |
addAction(int icon,
CharSequence title,
PendingIntent intent)
|
Notification |
build()
|
Notification |
getNotification()
Deprecated. |
Notification.Builder |
setAutoCancel(boolean autoCancel)
|
Notification.Builder |
setContent(RemoteViews views)
|
Notification.Builder |
setContentInfo(CharSequence info)
|
Notification.Builder |
setContentIntent(PendingIntent intent)
|
Notification.Builder |
setContentText(CharSequence text)
|
Notification.Builder |
setContentTitle(CharSequence title)
|
Notification.Builder |
setDefaults(int defaults)
|
Notification.Builder |
setDeleteIntent(PendingIntent intent)
|
Notification.Builder |
setFullScreenIntent(PendingIntent intent,
boolean highPriority)
|
Notification.Builder |
setLargeIcon(Bitmap icon)
|
Notification.Builder |
setLights(int argb,
int onMs,
int offMs)
|
Notification.Builder |
setNumber(int number)
|
Notification.Builder |
setOngoing(boolean ongoing)
|
Notification.Builder |
setOnlyAlertOnce(boolean onlyAlertOnce)
|
Notification.Builder |
setPriority(int pri)
|
Notification.Builder |
setProgress(int max,
int progress,
boolean indeterminate)
|
Notification.Builder |
setSmallIcon(int icon)
|
Notification.Builder |
setSmallIcon(int icon,
int level)
|
Notification.Builder |
setSound(Uri sound)
|
Notification.Builder |
setSound(Uri sound,
int streamType)
|
Notification.Builder |
setStyle(Notification.Style style)
|
Notification.Builder |
setSubText(CharSequence text)
|
Notification.Builder |
setTicker(CharSequence tickerText)
|
Notification.Builder |
setTicker(CharSequence tickerText,
RemoteViews views)
|
Notification.Builder |
setUsesChronometer(boolean b)
|
Notification.Builder |
setVibrate(long[] pattern)
|
Notification.Builder |
setWhen(long when)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Notification.Builder
public Notification.Builder(Context context)
setWhen
public Notification.Builder setWhen(long when)
setUsesChronometer
public Notification.Builder setUsesChronometer(boolean b)
setSmallIcon
public Notification.Builder setSmallIcon(int icon)
setSmallIcon
public Notification.Builder setSmallIcon(int icon,
int level)
setContentTitle
public Notification.Builder setContentTitle(CharSequence title)
setContentText
public Notification.Builder setContentText(CharSequence text)
setSubText
public Notification.Builder setSubText(CharSequence text)
setNumber
public Notification.Builder setNumber(int number)
setContentInfo
public Notification.Builder setContentInfo(CharSequence info)
setProgress
public Notification.Builder setProgress(int max,
int progress,
boolean indeterminate)
setContent
public Notification.Builder setContent(RemoteViews views)
setContentIntent
public Notification.Builder setContentIntent(PendingIntent intent)
setDeleteIntent
public Notification.Builder setDeleteIntent(PendingIntent intent)
setFullScreenIntent
public Notification.Builder setFullScreenIntent(PendingIntent intent,
boolean highPriority)
setTicker
public Notification.Builder setTicker(CharSequence tickerText)
setTicker
public Notification.Builder setTicker(CharSequence tickerText,
RemoteViews views)
setLargeIcon
public Notification.Builder setLargeIcon(Bitmap icon)
setSound
public Notification.Builder setSound(Uri sound)
setSound
public Notification.Builder setSound(Uri sound,
int streamType)
setVibrate
public Notification.Builder setVibrate(long[] pattern)
setLights
public Notification.Builder setLights(int argb,
int onMs,
int offMs)
setOngoing
public Notification.Builder setOngoing(boolean ongoing)
setOnlyAlertOnce
public Notification.Builder setOnlyAlertOnce(boolean onlyAlertOnce)
setAutoCancel
public Notification.Builder setAutoCancel(boolean autoCancel)
setDefaults
public Notification.Builder setDefaults(int defaults)
setPriority
public Notification.Builder setPriority(int pri)
addAction
public Notification.Builder addAction(int icon,
CharSequence title,
PendingIntent intent)
setStyle
public Notification.Builder setStyle(Notification.Style style)
getNotification
@Deprecated
public Notification getNotification()
- Deprecated.
build
public Notification build()
Copyright © 2008-2012. All Rights Reserved.