|
WIMM Labs |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wimm.framework.app.NotificationAgent
public class NotificationAgent
Manages and presents notifications.
Notification
Constructor Summary | |
---|---|
NotificationAgent(Context context)
Instantiates a new NotificationAgent. |
Method Summary | |
---|---|
void |
cancel(int id)
Cancel a notification by ID. |
void |
cancel(String tag,
int id)
Cancel a notification by ID and tag. |
void |
cancelAll()
Cancel all notifications displayed by the calling application. |
void |
notify(int id,
Notification notification)
Display a notification to the user. |
void |
notify(String tag,
int id,
Notification notification)
Display a notification to the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationAgent(Context context)
context
- The Context
.Method Detail |
---|
public void notify(int id, Notification notification)
id
- An identifier for this notification, unique within an application.notification
- The Notification
object to display.public void notify(String tag, int id, Notification notification)
tag
- A string identifier for the notification.id
- An identifier for this notification. The pair (tag, id) must be
unique within an application.notification
- The Notification
object to display.public void cancel(int id)
id
- An identifier for this notification, unique within an application.public void cancel(String tag, int id)
tag
- A string identifier for the notification.id
- An identifier for this notification. The pair (tag, id) must be
unique within an application.public void cancelAll()
|
WIMM Labs |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |