Class NotificationEventArgs
Definition
- Assembly:
- Tizen.Applications.NotificationEventListener.dll
- API Level:
- 4
This class provides the methods and properties to get information about the posted or updated notification.
public class NotificationEventArgs : EventArgs
- Inheritance
Constructors
View SourceNotificationEventArgs()
Initializes a new instance of the NotificationEventArgs class.
Declaration
public NotificationEventArgs()
API Level: 4
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 |
API Level: 4
View SourceAction
Gets the AppControl, which is invoked when notification is clicked.
Declaration
public AppControl Action { get; }
Property Value
Type | Description |
---|---|
AppControl |
API Level: 4
View SourceAppID
Gets the appId of the notification.
Declaration
public string AppID { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 4
View SourceContent
Gets the content text of the notification.
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 4
View SourceCount
Gets the count, which is displayed at the right side of notification.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 4
View SourceExtraDataKey
Gets the key for extra data.
Declaration
public ICollection<string> ExtraDataKey { get; }
Property Value
Type | Description |
---|---|
ICollection<String> |
API Level: 4
View SourceIcon
Gets the icon's path of the notification.
Declaration
public string Icon { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 4
View SourceIsTimeStampVisible
Gets the timestamp if the notification is visible or not.
Declaration
public bool IsTimeStampVisible { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 4
View SourceIsVisible
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 |
---|---|
Boolean |
API Level: 4
View SourceProgress
Gets the object of the progress notification.
Declaration
public NotificationEventArgs.ProgressArgs Progress { get; }
Property Value
Type | Description |
---|---|
NotificationEventArgs.ProgressArgs |
API Level: 4
View SourceProperty
Gets the property.
Declaration
public NotificationProperty Property { get; }
Property Value
Type | Description |
---|---|
NotificationProperty |
API Level: 4
View SourceSubIcon
Gets the sub icon path of the notification.
Declaration
public string SubIcon { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 4
View SourceTag
Gets the tag of notification.
Declaration
public string Tag { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 4
View SourceTimeStamp
Gets TimeStamp of notification.
Declaration
public DateTime TimeStamp { get; }
Property Value
Type | Description |
---|---|
DateTime |
Remarks
If IsTimeStampVisible property is set false, this TimeStamp property is meaningless.
API Level: 4
View SourceTitle
Gets the title of the notification.
Declaration
public string Title { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 4
View SourceUniqueNumber
Gets the unique ID of the notification.
Declaration
public int UniqueNumber { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 4
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. |
API Level: 4
View SourceGetStyle<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 |
---|---|
ArgumentException | Thrown when an argument is invalid. |