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 : object
Inheritance
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
String appId

The name of the application you want to delete.

Int32 uniqueNumber

The unique number of the notification.

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()
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View Source

GetAllCount()

Gets the number of all notifications

Declaration
C#
Copy
public static int GetAllCount()
Returns
Type Description
Int32

The number of all notifications

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
IList<NotificationEventArgs>
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View Source

GetNotificationEventArgs(Int32)

Returns NotificationEventArgs by UniqueNumber.

Declaration
C#
Copy
public static NotificationEventArgs GetNotificationEventArgs(int uniqueNumber)
Parameters
Type Name Description
Int32 uniqueNumber

The unique number of the Notification.

Returns
Type Description
NotificationEventArgs
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification
View Source

SendEvent(Int32, UserEventType)

Sends occured event from viewer application to the notification owner.

Declaration
C#
Copy
public static void SendEvent(int uniqueNumber, UserEventType type)
Parameters
Type Name Description
Int32 uniqueNumber

The unique number of the notification.

UserEventType type

Event type on notification.

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

SendEventWithNotification(NotificationEventArgs, UserEventType)

Declaration
C#
Copy
public static void SendEventWithNotification(NotificationEventArgs eventargs, UserEventType type)
Parameters
Type Name Description
NotificationEventArgs eventargs
UserEventType type
View Source

SetChecked(NotificationEventArgs, Boolean)

Declaration
C#
Copy
public static void SetChecked(NotificationEventArgs eventargs, bool checkedValue)
Parameters
Type Name Description
NotificationEventArgs eventargs
Boolean checkedValue

Events

View Source

Added

Event handler for notification insert event.

Declaration
C#
Copy
public static event EventHandler<NotificationEventArgs> Added
Event Type
Type Description
EventHandler<NotificationEventArgs>
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
EventHandler<NotificationDeleteEventArgs>
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
EventHandler<NotificationEventArgs>
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/notification

Extension Methods