android.app
Class Notification.Builder
java.lang.Object
android.app.Notification.Builder
- Enclosing class:
- Notification
public static class Notification.Builder
- extends Object
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)
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)
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)
getNotification
public Notification getNotification()
Copyright © 2008-2012. All Rights Reserved.