Class NotificationListenerManager
Definition
- Assembly:
- Tizen.Applications.NotificationEventListener.dll
- API Level:
- 4
This class provides a way to register callback function for some notification events.
public class NotificationListenerManager
- Inheritance
-
NotificationListenerManager
Remarks
The event listener can use this class to get a list of notifications or to clear notifications.
Methods
View SourceDelete(String, Int32)
Deletes a notification with appId and uniqueNumber.
Declaration
public static void Delete(string appId, int uniqueNumber)
Parameters
Type | Name | Description |
---|---|---|
String | appId | The name of the application you want to delete. |
Int32 | uniqueNumber | The unique number of the notification. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
UnauthorizedAccessException | Thrown in case of a permission is denied. |
InvalidOperationException | Thrown in case of any internal error. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View SourceDeleteAll()
Deletes all notifications.
Declaration
public static void DeleteAll()
Exceptions
Type | Condition |
---|---|
UnauthorizedAccessException | Thrown in case of a permission is denied. |
InvalidOperationException | Thrown in case of any internal error. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View SourceGetList()
Returns the notification list.
Declaration
public static IList<NotificationEventArgs> GetList()
Returns
Type | Description |
---|---|
IList<NotificationEventArgs> |
Exceptions
Type | Condition |
---|---|
UnauthorizedAccessException | Thrown in case of a permission is denied. |
InvalidOperationException | Thrown in case of any internal error. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
Events
View SourceAdded
Event handler for notification insert event.
Declaration
public static event EventHandler<NotificationEventArgs> Added
Event Type
Type | Description |
---|---|
EventHandler<NotificationEventArgs> |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
UnauthorizedAccessException | Thrown in case of a permission is denied. |
InvalidOperationException | Thrown in case of any internal error. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View SourceDeleted
Event handler for notification delete event.
Declaration
public static event EventHandler<NotificationDeleteEventArgs> Deleted
Event Type
Type | Description |
---|---|
EventHandler<NotificationDeleteEventArgs> |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
UnauthorizedAccessException | Thrown in case of a permission is denied. |
InvalidOperationException | Thrown in case of any internal error. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View SourceUpdated
Event handler for notification update event.
Declaration
public static event EventHandler<NotificationEventArgs> Updated
Event Type
Type | Description |
---|---|
EventHandler<NotificationEventArgs> |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown in case of an invalid parameter. |
UnauthorizedAccessException | Thrown in case of a permission is denied. |
InvalidOperationException | Thrown in case of any internal error. |