WIMM Labs


com.wimm.framework.app
Class NotificationAgent

java.lang.Object
  extended by com.wimm.framework.app.NotificationAgent

public class NotificationAgent
extends Object

Manages and presents notifications.

Since:
WIMM SDK 1.0.0
See Also:
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

NotificationAgent

public NotificationAgent(Context context)
Instantiates a new NotificationAgent.

Parameters:
context - The Context.
Since:
WIMM SDK 1.0.0
Method Detail

notify

public void notify(int id,
                   Notification notification)
Display a notification to the user.

Parameters:
id - An identifier for this notification, unique within an application.
notification - The Notification object to display.
Since:
WIMM SDK 1.0.0

notify

public void notify(String tag,
                   int id,
                   Notification notification)
Display a notification to the user.

Parameters:
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.
Since:
WIMM SDK 1.0.0

cancel

public void cancel(int id)
Cancel a notification by ID.

Parameters:
id - An identifier for this notification, unique within an application.
Since:
WIMM SDK 1.0.0

cancel

public void cancel(String tag,
                   int id)
Cancel a notification by ID and tag.

Parameters:
tag - A string identifier for the notification.
id - An identifier for this notification. The pair (tag, id) must be unique within an application.
Since:
WIMM SDK 1.0.0

cancelAll

public void cancelAll()
Cancel all notifications displayed by the calling application.

Since:
WIMM SDK 1.0.0

WIMM Labs