Home | History | Annotate | Download | only in app

Lines Matching defs:Notification

44  * A class that represents how a persistent notification is to be presented to
47 * <p>The {@link Notification.Builder Notification.Builder} has been added to make it
57 public class Notification implements Parcelable
59 private static final String TAG = "Notification";
67 * Use the default notification sound. This will ignore any given
77 * Use the default notification vibrate. This will ignore any given
87 * Use the default notification lights. This will ignore the
97 * A timestamp related to this notification, in milliseconds since the epoch.
109 * <li>Notification of a new chat message should be stamped when the message was received.</li>
110 * <li>Notification of an ongoing file download (with a progress bar, for example) should be stamped when the download started.</li>
111 * <li>Notification of a completed file download should be stamped when the download finished.</li>
112 * <li>Notification of an upcoming meeting should be stamped with the time the meeting will begin (that is, in the future).</li>
113 * <li>Notification of an ongoing stopwatch (increasing timer) should be stamped with the watch's start time.
114 * <li>Notification of an ongoing countdown timer should be stamped with the timer's end time.
136 * The number of events that this notification represents. For example, in a new mail
137 * notification, this could be the number of unread messages.
139 * The system may or may not use this field to modify the appearance of the notification. For
143 * {@link Notification.Builder} has displayed the number in the expanded notification view.
155 * Stack</a> document. In particular, make sure to read the notification section
158 * notification.
163 * The intent to execute when the notification is explicitly dismissed by the user, either with
172 * An intent to launch instead of posting the notification to the status bar.
174 * @see Notification.Builder#setFullScreenIntent
187 * The view to show as the ticker in the status bar when the notification
193 * The view that will represent this notification in the expanded status bar.
198 * A large-format version of {@link #contentView}, giving the Notification an
213 * To play the default notification sound, see {@link #defaults}.
281 * set if you want the LED on for this notification.
301 * set if this notification is in reference to something that is ongoing,
302 * like a phone call. It should not be set if this notification is in
310 * the audio will be repeated until the notification is
311 * cancelled or the notification window is opened.
318 * notification is sent, even if it has not been canceled before that.
324 * set if the notification should be canceled when it is clicked by the
332 * set if the notification should not be canceled when the user clicks
339 * set if this notification represents a currently running service. This
354 * Default notification {@link #priority}. If your application does not prioritize its own
368 * circumstances, such as detailed notification logs.
374 * show these items larger, or at a different position in notification lists, compared with
386 * Relative priority for this notification.
389 * this notification. Low-priority notifications may be hidden from the user in certain
390 * situations, while the user might be interrupted for a higher-priority notification. The
392 * the notification.
398 * Notification type: incoming call (voice or video) or similar synchronous communication request.
404 * Notification type: incoming direct message (SMS, instant message, etc.).
410 * Notification type: asynchronous bulk message (email).
416 * Notification type: calendar event.
422 * Notification type: promotion or advertisement.
428 * If this notification matches of one or more special types (see the <code>KIND_*</code>
434 * Additional semantic data to be carried around with this Notification.
478 * Structure to encapsulate an "action", including title and icon, that can be attached to a Notification.
539 * Constructs a Notification object with default values.
542 public Notification()
551 public Notification(Context context, int icon, CharSequence tickerText, long when,
562 * Constructs a Notification object with the information needed to
566 * @param tickerText The text that flows by in the status bar when the notification first
574 public Notification(int icon, CharSequence tickerText, long when)
582 * Unflatten the notification from a parcel.
584 public Notification(Parcel parcel)
640 public Notification clone() {
641 Notification that = new Notification();
651 public void cloneInto(Notification that, boolean heavy) {
706 Log.e(TAG, "could not unparcel extras from notification: " + this, e);
728 * Removes heavyweight parts of the Notification object for archival or for sending to
738 extras.remove(Notification.EXTRA_LARGE_ICON);
739 extras.remove(Notification.EXTRA_LARGE_ICON_BIG);
740 extras.remove(Notification.EXTRA_PICTURE);
752 + " instance is a custom Parcelable and not allowed in Notification");
764 * Flatten this notification from a parcel.
850 * Parcelable.Creator that instantiates Notification objects
852 public static final Parcelable.Creator<Notification> CREATOR
853 = new Parcelable.Creator<Notification>()
855 public Notification createFromParcel(Parcel parcel)
857 return new Notification(parcel);
860 public Notification[] newArray(int size)
862 return new Notification[size];
875 * @param contentIntent The intent to launch when the user clicks the expanded notification.
887 Notification.Builder builder = new Notification.Builder(context);
915 sb.append("Notification(pri=");
992 * Builder class for {@link Notification} objects.
994 * Provides a convenient way to set the various fields of a {@link Notification} and generate
995 * content views using the platform's notification layout template. If your app supports
1004 * Notification noti = new Notification.Builder(mContext)
1073 // Set defaults to match the defaults of a Notification
1080 * Add a timestamp pertaining to the notification (usually the time the event occurred).
1081 * It will be shown in the notification content view by default; use
1084 * @see Notification#when
1101 * Show the {@link Notification#when} field as a stopwatch.
1103 * Instead of presenting <code>when</code> as a timestamp, the notification will show an
1109 * @see Notification#when
1117 * Set the small icon resource, which will be used to represent the notification in the
1128 * @see Notification#icon
1143 * @see Notification#icon
1144 * @see Notification#iconLevel
1153 * Set the first line of text in the platform notification template.
1161 * Set the second line of text in the platform notification template.
1169 * Set the third line of text in the platform notification template.
1179 * Set the large number at the right-hand side of the notification. This is
1189 * A small piece of additional information pertaining to this notification.
1191 * The platform template will draw this on the last line of the notification, at the far
1200 * Set the progress this notification represents.
1214 * @see Notification#contentView
1222 * Supply a {@link PendingIntent} to be sent when the notification is clicked.
1228 * clickable buttons inside the notification view).
1230 * @see Notification#contentIntent Notification.contentIntent
1238 * Supply a {@link PendingIntent} to send when the notification is cleared explicitly by the user.
1240 * @see Notification#deleteIntent
1248 * An intent to launch instead of posting the notification to the status bar.
1253 * to turn it off and use a normal notification, as this can be extremely
1257 * @param highPriority Passing true will cause this notification to be sent
1260 * @see Notification#fullScreenIntent
1269 * Set the "ticker" text which is displayed in the status bar when the notification first
1272 * @see Notification#tickerText
1280 * Set the text that is displayed in the status bar when the notification first
1284 * @see Notification#tickerText
1285 * @see Notification#tickerView
1294 * Add a large icon to the notification (and the ticker on some devices).
1296 * In the platform template, this image will be shown on the left of the notification view
1299 * @see Notification#largeIcon
1311 * @see Notification#sound
1324 * @see Notification#sound
1340 * @see Notification#vibrate
1355 * @see Notification#ledARGB
1356 * @see Notification#ledOnMS
1357 * @see Notification#ledOffMS
1367 * Set whether this is an "ongoing" notification.
1379 * @see Notification#FLAG_ONGOING_EVENT
1389 * and ticker to be played if the notification is not already showing.
1391 * @see Notification#FLAG_ONLY_ALERT_ONCE
1399 * Make this notification automatically dismissed when the user touches it. The
1402 * @see Notification#FLAG_AUTO_CANCEL
1410 * Set which notification properties will be inherited from system defaults.
1424 * Set the priority of this notification.
1426 * @see Notification#priority
1436 * Add a kind (category) to this notification. Optional.
1438 * @see Notification#kind
1446 * Add metadata to this notification.
1449 * current contents are copied into the Notification each time {@link #build()} is
1452 * @see Notification#extras
1461 * Add an action to this notification. Actions are typically displayed by
1462 * the system as a button adjacent to the notification content.
1464 * A notification displays up to 3 actions, from left to right in the order they were added.
1476 * Add a rich notification style to be applied at build time.
1478 * @param style Object responsible for modifying the notification style.
1603 // Log.d("Notification", "has actions: " + mContentText);
1610 //Log.d("Notification", "adding action " + i + ": " + mActions.get(i).title);
1660 * Apply the unstyled operations and return a new {@link Notification} object.
1662 private Notification buildUnstyled() {
1663 Notification n = new Notification();
1707 * this Notification object.
1731 public Notification getNotification() {
1736 * Combine all of the options that have been set and return a new {@link Notification}
1739 public Notification build() {
1740 final Notification n;
1759 * Apply this Builder to an existing {@link Notification} object.
1763 public Notification buildInto(Notification n) {
1770 * An object that can apply a rich notification style to a {@link Notification.Builder}
1855 public abstract Notification build();
1863 * Notification noti = new Notification.BigPictureStyle(
1864 * new Notification.Builder()
1873 * @see Notification#bigContentView
1905 * Provide the bitmap to be used as the payload for the BigPicture notification.
1913 * Override the large icon when the big notification is shown.
1942 public Notification build() {
1944 Notification wip = mBuilder.buildUnstyled();
1958 * Notification noti = new Notification.BigTextStyle(
1959 * new Notification.Builder()
1968 * @see Notification#bigContentView
2035 public Notification build() {
2037 Notification wip = mBuilder.buildUnstyled();
2051 * Notification noti = new Notification.InboxStyle(
2052 * new Notification.Builder()
2064 * @see Notification#bigContentView
2094 * Append a line to the digest section of the Inbox notification.
2146 public Notification build() {
2148 Notification wip = mBuilder.buildUnstyled();