Android.App.NotificationManager Class
Class to notify the user of events that happen.

See Also: NotificationManager Members

Syntax

[Android.Runtime.Register("android/app/NotificationManager", DoNotGenerateAcw=true)]
public class NotificationManager : Java.Lang.Object

Remarks

Class to notify the user of events that happen. This is how you tell the user that something has happened in the background.

Notifications can take different forms:

Each of the notify methods takes an int id parameter and optionally a Java.Lang.String tag parameter, which may be null. These parameters are used to form a pair (tag, id), or (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 NotificationManager.Cancel(int) or NotificationManager.Cancel(string, System.Int32) method to clear this notification.

You do not instantiate this class directly; instead, retrieve it through Android.Content.Context.GetSystemService(string).

Developer Guides

For a guide to creating notifications, read the Status Bar Notifications developer guide.

See Also

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1