diff options
| author | Brad Fitzpatrick <bradfitz@android.com> | 2010-11-03 11:42:19 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-11-03 11:42:19 -0700 |
| commit | 41727a4592bde9a9c7207258ffcc2105c1d90ab5 (patch) | |
| tree | b95e9c84ab3a16ef119b1814717cef1a9efb18f2 /core | |
| parent | e3afc288ddddeda4e771be71f15b166f8aaa01e1 (diff) | |
| parent | f3a6b901917b1609c6f1901bb36deb07a58fd20d (diff) | |
| download | frameworks_base-41727a4592bde9a9c7207258ffcc2105c1d90ab5.zip frameworks_base-41727a4592bde9a9c7207258ffcc2105c1d90ab5.tar.gz frameworks_base-41727a4592bde9a9c7207258ffcc2105c1d90ab5.tar.bz2 | |
am f3a6b901: am 9df48a03: Merge "NotificationManager: droiddoc documentation improvements"
* commit 'f3a6b901917b1609c6f1901bb36deb07a58fd20d':
NotificationManager: droiddoc documentation improvements
Diffstat (limited to 'core')
| -rw-r--r-- | core/java/android/app/NotificationManager.java | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/core/java/android/app/NotificationManager.java b/core/java/android/app/NotificationManager.java index 1fae516..e3242c1 100644 --- a/core/java/android/app/NotificationManager.java +++ b/core/java/android/app/NotificationManager.java @@ -39,13 +39,17 @@ import android.util.Log; * </ul> * * <p> - * Each of the notify methods takes an int id parameter. This id identifies - * this notification from your app to the system, so that id should be unique - * within your app. If you call one of the notify methods with an id that is - * currently active and a new set of notification parameters, it will be - * updated. For example, if you pass a new status bar icon, the old icon in - * the status bar will be replaced with the new one. This is also the same - * id you pass to the {@link #cancel} method to clear this notification. + * Each of the notify methods takes an int id parameter and optionally a + * {@link String} tag parameter, which may be {@code null}. These parameters + * are used to form a pair (tag, id), or ({@code null}, id) if tag is + * unspecified. This pair identifies this notification from your app to the + * system, so that pair should be unique within your app. If you call one + * of the notify methods with a (tag, id) pair that is currently active and + * a new set of notification parameters, it will be updated. For example, + * if you pass a new status bar icon, the old icon in the status bar will + * be replaced with the new one. This is also the same tag and id you pass + * to the {@link #cancel(int)} or {@link #cancel(String, int)} method to clear + * this notification. * * <p> * You do not instantiate this class directly; instead, retrieve it through @@ -94,12 +98,11 @@ public class NotificationManager /** * Persistent notification on the status bar, * - * @param tag An string identifier for this notification unique within your - * application. + * @param tag A string identifier for this notification. May be {@code null}. + * @param id An identifier for this notification. The pair (tag, id) must be unique + * within your application. * @param notification A {@link Notification} object describing how to * notify the user, other than the view you're providing. Must not be null. - * @return the id of the notification that is associated with the string identifier that - * can be used to cancel the notification */ public void notify(String tag, int id, Notification notification) { |
