Class NotificationEventArgs
Definition
- Namespace:
- Tizen.Applications.NotificationEventListener
- Assembly:
- Tizen.Applications.NotificationEventListener.dll
This class provides the methods and properties to get information about the posted or updated notification.
public class NotificationEventArgs : EventArgs
- Inheritance
-
objectSystem.EventArgsNotificationEventArgs
Constructors
View SourceNotificationEventArgs()
Initializes a new instance of the NotificationEventArgs class.
Declaration
public NotificationEventArgs()
Properties
View SourceAccessory
Gets the AccessoryArgs, which has option of sound, vibration, and LED.
Declaration
public NotificationEventArgs.AccessoryArgs Accessory { get; }
Property Value
Type | Description |
---|---|
NotificationEventArgs.AccessoryArgs |
Action
Gets the AppControl, which is invoked when notification is clicked.
Declaration
public AppControl Action { get; }
Property Value
Type | Description |
---|---|
AppControl |
AppID
Gets the appId of the notification.
Declaration
public string AppID { get; }
Property Value
Type | Description |
---|---|
string |
Content
Gets the content text of the notification.
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
string |
Count
Gets the count, which is displayed at the right side of notification.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
ExtraDataKey
Gets the key for extra data.
Declaration
public ICollection<string> ExtraDataKey { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<T><string> |
Icon
Gets the icon's path of the notification.
Declaration
public string Icon { get; }
Property Value
Type | Description |
---|---|
string |
IsTimeStampVisible
Gets the timestamp if the notification is visible or not.
Declaration
public bool IsTimeStampVisible { get; }
Property Value
Type | Description |
---|---|
bool |
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
public bool IsVisible { get; }
Property Value
Type | Description |
---|---|
bool |
Progress
Gets the object of the progress notification.
Declaration
public NotificationEventArgs.ProgressArgs Progress { get; }
Property Value
Type | Description |
---|---|
NotificationEventArgs.ProgressArgs |
Property
Gets the property.
Declaration
public NotificationProperty Property { get; }
Property Value
Type | Description |
---|---|
NotificationProperty |
SubIcon
Gets the sub icon path of the notification.
Declaration
public string SubIcon { get; }
Property Value
Type | Description |
---|---|
string |
Tag
Gets the tag of notification.
Declaration
public string Tag { get; }
Property Value
Type | Description |
---|---|
string |
TimeStamp
Gets TimeStamp of notification.
Declaration
public DateTime TimeStamp { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Remarks
If IsTimeStampVisible property is set false, this TimeStamp property is meaningless.
Title
Gets the title of the notification.
Declaration
public string Title { get; }
Property Value
Type | Description |
---|---|
string |
UniqueNumber
Gets the unique ID of the notification.
Declaration
public int UniqueNumber { get; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceGetExtraData(string)
Gets the ExtraDataArgs.
Declaration
public Bundle GetExtraData(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key that specifies which extra data. |
Returns
Type | Description |
---|---|
Bundle | Returns the bundle for key. |
GetStyle<T>()
Gets the styleArgs of active, lock, indicator, and bigpicture.
Declaration
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. |