Class NotificationListenerManager
Definition
- Assembly:
- Tizen.Applications.NotificationEventListener.dll
- API Level:
- 4
This class provides a way to register callback function for some notification events.
C#Copypublic class NotificationListenerManager
- Inheritance
-
System.ObjectNotificationListenerManager
Remarks
The event listener can use this class to get a list of notifications or to clear notifications.
Methods
Declaration
C#Copypublic static void Delete(string appId, int uniqueNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | appId | The name of the application you want to delete. |
System.Int32 | uniqueNumber | The unique number of the notification. |
Exceptions
Type | Condition |
---|---|
System.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
Declaration
C#Copypublic 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
Declaration
C#Copypublic static IList<NotificationEventArgs> GetList()
Returns
Type | Description |
---|---|
System.Collections.Generic.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
Declaration
C#Copypublic static event EventHandler<NotificationEventArgs> Added
Event Type
Type | Description |
---|---|
System.EventHandler<NotificationEventArgs> |
Exceptions
Type | Condition |
---|---|
System.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
Declaration
C#Copypublic static event EventHandler<NotificationDeleteEventArgs> Deleted
Event Type
Type | Description |
---|---|
System.EventHandler<NotificationDeleteEventArgs> |
Exceptions
Type | Condition |
---|---|
System.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
Declaration
C#Copypublic static event EventHandler<NotificationEventArgs> Updated
Event Type
Type | Description |
---|---|
System.EventHandler<NotificationEventArgs> |
Exceptions
Type | Condition |
---|---|
System.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. |