Class NotificationEventArgs

Definition

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

This class provides the methods and properties to get information about the posted or updated notification.

C#
Copy
public class NotificationEventArgs : EventArgs
Inheritance
System.Object
NotificationEventArgs

Constructors

View Source

NotificationEventArgs()

Initializes a new instance of the NotificationEventArgs class.

Declaration
C#
Copy
public NotificationEventArgs()
API Level: 4

Properties

View Source

Accessory

Gets the AccessoryArgs, which has option of sound, vibration, and LED.

Declaration
C#
Copy
public NotificationEventArgs.AccessoryArgs Accessory { get; }
Property Value
Type Description
NotificationEventArgs.AccessoryArgs
API Level: 4
View Source

Action

Gets the AppControl, which is invoked when notification is clicked.

Declaration
C#
Copy
public AppControl Action { get; }
Property Value
Type Description
AppControl
API Level: 4
View Source

AppID

Gets the appId of the notification.

Declaration
C#
Copy
public string AppID { get; }
Property Value
Type Description
System.String
API Level: 4
View Source

Content

Gets the content text of the notification.

Declaration
C#
Copy
public string Content { get; }
Property Value
Type Description
System.String
API Level: 4
View Source

Count

Gets the count, which is displayed at the right side of notification.

Declaration
C#
Copy
public int Count { get; }
Property Value
Type Description
Int32
API Level: 4
View Source

ExtraDataKey

Gets the key for extra data.

Declaration
C#
Copy
public ICollection<string> ExtraDataKey { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<System.String>
API Level: 4
View Source

Icon

Gets the icon's path of the notification.

Declaration
C#
Copy
public string Icon { get; }
Property Value
Type Description
System.String
API Level: 4
View Source

IsTimeStampVisible

Gets the timestamp if the notification is visible or not.

Declaration
C#
Copy
public bool IsTimeStampVisible { get; }
Property Value
Type Description
Boolean
API Level: 4
View Source

IsVisible

Gets a value that determines whether notification is displayed on the default viewer. If IsDisplay property is set as false and add style, you can see only style notification.

Declaration
C#
Copy
public bool IsVisible { get; }
Property Value
Type Description
Boolean
API Level: 4
View Source

Progress

Gets the object of the progress notification.

Declaration
C#
Copy
public NotificationEventArgs.ProgressArgs Progress { get; }
Property Value
Type Description
NotificationEventArgs.ProgressArgs
API Level: 4
View Source

Property

Gets the property.

Declaration
C#
Copy
public NotificationProperty Property { get; }
Property Value
Type Description
NotificationProperty
API Level: 4
View Source

SubIcon

Gets the sub icon path of the notification.

Declaration
C#
Copy
public string SubIcon { get; }
Property Value
Type Description
System.String
API Level: 4
View Source

Tag

Gets the tag of notification.

Declaration
C#
Copy
public string Tag { get; }
Property Value
Type Description
System.String
API Level: 4
View Source

TimeStamp

Gets TimeStamp of notification.

Declaration
C#
Copy
public DateTime TimeStamp { get; }
Property Value
Type Description
System.DateTime
Remarks

If IsTimeStampVisible property is set false, this TimeStamp property is meaningless.

API Level: 4
View Source

Title

Gets the title of the notification.

Declaration
C#
Copy
public string Title { get; }
Property Value
Type Description
System.String
API Level: 4
View Source

UniqueNumber

Gets the unique ID of the notification.

Declaration
C#
Copy
public int UniqueNumber { get; }
Property Value
Type Description
Int32
API Level: 4

Methods

View Source

GetExtraData(String)

Gets the ExtraDataArgs.

Declaration
C#
Copy
public Bundle GetExtraData(string key)
Parameters
Type Name Description
System.String key

The key that specifies which extra data.

Returns
Type Description
Bundle

Returns the bundle for key.

API Level: 4
View Source

GetStyle<T>()

Gets the styleArgs of active, lock, indicator, and bigpicture.

Declaration
C#
Copy
public T GetStyle<T>() where T : NotificationEventArgs.StyleArgs, new()
Returns
Type Description
T

The NotificationEventListener.StyleArgs object associated with the given style.

Type Parameters
Name Description
T

Type of notification style to be queried.

Exceptions
Type Condition
System.ArgumentException

Thrown when an argument is invalid.

API Level: 4