Class Notification.ButtonAction

    Definition

    Namespace:
    Tizen.Applications.Notifications
    Assembly:
    Tizen.Applications.Notification.dll

    This class helps you to set the button on active style of notification.

    public sealed class Notification.ButtonAction : Notification.MakerBase
    Inheritance
    object
    Notification.Tizen.Applications.Notifications.Notification.MakerBase
    Notification.ButtonAction
    Remarks

    It must include a text, an index, an ImagePath, and an action to be invoked when the user selects the button.

    Properties

    View Source

    Action

    Gets or sets the action, which is invoked when the button is clicked.

    Declaration
    public AppControl Action { get; set; }
    Property Value
    Type Description
    AppControl

    If you don't set action, nothing happens when the button is clicked.

    Remarks

    It must include a text, an index, an ImagePath, and an action to be invoked when the user selects the button.

    Examples
    ButtonAction button = new ButtonAction
    {
        Index = ButtonIndex.First,
        text = "Yes",
        ImagePath = "image path",
        Action = new AppControl{ ApplicationId = "org.tizen.app" };
    };
    See Also
    AppControl
    View Source

    ImagePath

    Gets or sets the image path that represents the button. You should provide an absolute path for an image file.

    Declaration
    public string ImagePath { get; set; }
    Property Value
    Type Description
    string
    Remarks

    It must include a text, an index, an ImagePath, and an action to be invoked when the user selects the button.

    View Source

    Index

    Gets or sets the index of the button, which appeares as notification.

    Declaration
    public ButtonIndex Index { get; set; }
    Property Value
    Type Description
    ButtonIndex
    Remarks

    It must include a text, an index, an ImagePath, and an action to be invoked when the user selects the button.

    View Source

    Text

    Gets or sets the text describing the button.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string
    Remarks

    It must include a text, an index, an ImagePath, and an action to be invoked when the user selects the button.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX