Class NotificationListenerManager

Definition

Namespace:
Tizen.Applications.NotificationEventListener
Assembly:
Tizen.Applications.NotificationEventListener.dll
API Level:
4

This class provides a way to register callback function for some notification events.

C#
Copy
public class NotificationListenerManager
Inheritance
System.Object
NotificationListenerManager
Remarks

The event listener can use this class to get a list of notifications or to clear notifications.

Methods

View Source

Delete(String, Int32)

Deletes a notification with appId and uniqueNumber.

Declaration
C#
Copy
public static void Delete(string appId, int uniqueNumber)
Parameters
Type Name Description
System.String appId

The name of the application you want to delete.

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.

System.InvalidOperationException

Thrown in case of any internal error.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View Source

DeleteAll()

Deletes all notifications.

Declaration
C#
Copy
public static void DeleteAll()
Exceptions
Type Condition
UnauthorizedAccessException

Thrown in case of a permission is denied.

System.InvalidOperationException

Thrown in case of any internal error.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View Source

GetList()

Returns the notification list.

Declaration
C#
Copy
public static IList<NotificationEventArgs> GetList()
Returns
Type Description
System.Collections.Generic.IList<NotificationEventArgs>
Exceptions
Type Condition
UnauthorizedAccessException

Thrown in case of a permission is denied.

System.InvalidOperationException

Thrown in case of any internal error.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification

Events

View Source

Added

Event handler for notification insert event.

Declaration
C#
Copy
public 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.

System.InvalidOperationException

Thrown in case of any internal error.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View Source

Deleted

Event handler for notification delete event.

Declaration
C#
Copy
public 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.

System.InvalidOperationException

Thrown in case of any internal error.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View Source

Updated

Event handler for notification update event.

Declaration
C#
Copy
public 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.

System.InvalidOperationException

Thrown in case of any internal error.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification