android.app
Class Notification.Builder

java.lang.Object
  extended by android.app.Notification.Builder
Enclosing class:
Notification

public static class Notification.Builder
extends Object


Constructor Summary
Notification.Builder(Context context)
           
 
Method Summary
 Notification getNotification()
           
 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 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 setTicker(CharSequence tickerText)
           
 Notification.Builder setTicker(CharSequence tickerText, RemoteViews views)
           
 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
 

Constructor Detail

Notification.Builder

public Notification.Builder(Context context)
Method Detail

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.