Class Notification.ButtonAction
Definition
- Namespace:
- Tizen.
Applications. Notifications
- Assembly:
- Tizen.Applications.Notification.dll
- API Level:
- 3
This class helps you to set the button on active style of notification.
C#
Copy
public sealed class ButtonAction : Notification.MakerBase
- Inheritance
-
System.
Object Tizen.Applications. Notifications. Notification. Maker Base Notification.Button Action
Remarks
It must include a text, an index, an ImagePath, and an action to be invoked when the user selects the button.
Properties
Declaration
C#
Copy
public AppControl Action { get; set; }
Property Value
Type | Description |
---|---|
App |
If you don't set action, nothing happens when the button is clicked. |
Examples
Copy
ButtonAction button = new ButtonAction
{
Index = ButtonIndex.First,
text = "Yes",
ImagePath = "image path",
Action = new AppControl{ ApplicationId = "org.tizen.app" };
};
See Also
API Level: 3
View Source
ImagePath
Gets or sets the image path that represents the button. You should provide an absolute path for an image file.
Declaration
C#
Copy
public string ImagePath { get; set; }
Property Value
Type | Description |
---|---|
System. |
API Level: 3
Declaration
C#
Copy
public ButtonIndex Index { get; set; }
Property Value
Type | Description |
---|---|
Button |
API Level: 3
Declaration
C#
Copy
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System. |