Skip to content

Commit a4487e1

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Clean up API docs for Notification." into jb-dev
2 parents 6b16286 + d33b803 commit a4487e1

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

api/current.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3722,10 +3722,6 @@ package android.app {
37223722
field public static final int FLAG_ONGOING_EVENT = 2; // 0x2
37233723
field public static final int FLAG_ONLY_ALERT_ONCE = 8; // 0x8
37243724
field public static final int FLAG_SHOW_LIGHTS = 1; // 0x1
3725-
field public static final java.lang.String KIND_CALL = "android.call";
3726-
field public static final java.lang.String KIND_EMAIL = "android.email";
3727-
field public static final java.lang.String KIND_EVENT = "android.event";
3728-
field public static final java.lang.String KIND_MESSAGE = "android.message";
37293725
field public static final java.lang.String KIND_PROMO = "android.promo";
37303726
field public static final int PRIORITY_DEFAULT = 0; // 0x0
37313727
field public static final int PRIORITY_HIGH = 1; // 0x1
@@ -3743,7 +3739,6 @@ package android.app {
37433739
field public android.app.PendingIntent fullScreenIntent;
37443740
field public int icon;
37453741
field public int iconLevel;
3746-
field public java.lang.String[] kind;
37473742
field public android.graphics.Bitmap largeIcon;
37483743
field public int ledARGB;
37493744
field public int ledOffMS;
@@ -3778,7 +3773,6 @@ package android.app {
37783773
public static class Notification.Builder {
37793774
ctor public Notification.Builder(android.content.Context);
37803775
method public android.app.Notification.Builder addAction(int, java.lang.CharSequence, android.app.PendingIntent);
3781-
method public android.app.Notification.Builder addKind(java.lang.String);
37823776
method public android.app.Notification build();
37833777
method public deprecated android.app.Notification getNotification();
37843778
method public android.app.Notification.Builder setAutoCancel(boolean);

core/java/android/app/Notification.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,21 +390,25 @@ public class Notification implements Parcelable
390390
public int priority;
391391

392392
/**
393+
* @hide
393394
* Notification type: incoming call (voice or video) or similar synchronous communication request.
394395
*/
395396
public static final String KIND_CALL = "android.call";
396397

397398
/**
399+
* @hide
398400
* Notification type: incoming direct message (SMS, instant message, etc.).
399401
*/
400402
public static final String KIND_MESSAGE = "android.message";
401403

402404
/**
405+
* @hide
403406
* Notification type: asynchronous bulk message (email).
404407
*/
405408
public static final String KIND_EMAIL = "android.email";
406409

407410
/**
411+
* @hide
408412
* Notification type: calendar event.
409413
*/
410414
public static final String KIND_EVENT = "android.event";
@@ -415,6 +419,7 @@ public class Notification implements Parcelable
415419
public static final String KIND_PROMO = "android.promo";
416420

417421
/**
422+
* @hide
418423
* If this notification matches of one or more special types (see the <code>KIND_*</code>
419424
* constants), add them here, best match first.
420425
*/
@@ -977,8 +982,14 @@ public Builder setWhen(long when) {
977982
}
978983

979984
/**
980-
* Show the {@link Notification#when} field as a countdown (or count-up) timer instead of a timestamp.
985+
* Show the {@link Notification#when} field as a stopwatch.
986+
*
987+
* Instead of presenting <code>when</code> as a timestamp, the notification will show an
988+
* automatically updating display of the minutes and seconds since <code>when</code>.
989+
*
990+
* Useful when showing an elapsed time (like an ongoing phone call).
981991
*
992+
* @see android.widget.Chronometer
982993
* @see Notification#when
983994
*/
984995
public Builder setUsesChronometer(boolean b) {
@@ -1303,6 +1314,8 @@ public Builder setPriority(int pri) {
13031314
}
13041315

13051316
/**
1317+
* @hide
1318+
*
13061319
* Add a kind (category) to this notification. Optional.
13071320
*
13081321
* @see Notification#kind

0 commit comments

Comments
 (0)