Class NotificationListenerManager
Definition
- Namespace:
- Tizen.Applications.NotificationEventListener
- Assembly:
- Tizen.Applications.NotificationEventListener.dll
This class provides a way to register callback function for some notification events.
C#Copypublic class NotificationListenerManager
- Inheritance
-
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 |
|---|---|---|
| string | appId | The name of the application you want to delete. |
| int | uniqueNumber | The unique number of the notification. |
Remarks
The event listener can use this class to get a list of notifications or to clear notifications.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown in case of an invalid parameter. |
| System.UnauthorizedAccessException | Thrown in case of a permission is denied. |
| System.InvalidOperationException | Thrown in case of any internal error. |
Declaration
C#Copypublic static void DeleteAll()
Remarks
The event listener can use this class to get a list of notifications or to clear notifications.
Exceptions
| Type | Condition |
|---|---|
| System.UnauthorizedAccessException | Thrown in case of a permission is denied. |
| System.InvalidOperationException | Thrown in case of any internal error. |
Declaration
C#Copypublic static IList<NotificationEventArgs> GetList()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IList<T><NotificationEventArgs> |
Remarks
The event listener can use this class to get a list of notifications or to clear notifications.
Exceptions
| Type | Condition |
|---|---|
| System.UnauthorizedAccessException | Thrown in case of a permission is denied. |
| System.InvalidOperationException | Thrown in case of any internal error. |
Events
Declaration
C#Copypublic static event EventHandler<NotificationEventArgs> Added
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><NotificationEventArgs> |
Remarks
The event listener can use this class to get a list of notifications or to clear notifications.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown in case of an invalid parameter. |
| System.UnauthorizedAccessException | Thrown in case of a permission is denied. |
| System.InvalidOperationException | Thrown in case of any internal error. |
Declaration
C#Copypublic static event EventHandler<NotificationDeleteEventArgs> Deleted
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><NotificationDeleteEventArgs> |
Remarks
The event listener can use this class to get a list of notifications or to clear notifications.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown in case of an invalid parameter. |
| System.UnauthorizedAccessException | Thrown in case of a permission is denied. |
| System.InvalidOperationException | Thrown in case of any internal error. |
Declaration
C#Copypublic static event EventHandler<NotificationEventArgs> Updated
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><NotificationEventArgs> |
Remarks
The event listener can use this class to get a list of notifications or to clear notifications.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown in case of an invalid parameter. |
| System.UnauthorizedAccessException | Thrown in case of a permission is denied. |
| System.InvalidOperationException | Thrown in case of any internal error. |