Class Notification.ReplyAction

    Definition

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

    Class for displaying direct-reply on notification. You must set a ReplyMax and Button. Otherwise, user can't send written text to application which is set by AppControl.

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

    Properties

    View Source

    Button

    Gets or sets the button, which appears as ReplyAction in notification. You must set the button, otherwise, a user can't send written text to application, which is set by AppControl.

    Declaration
    public Notification.ButtonAction Button { get; set; }
    Property Value
    Type Description
    Notification.ButtonAction
    Remarks

    If you set it to null, the already set ButtonAction will be removed.

    Examples
    ReplyAction button = new ReplyAction
    {
        ParentIndex = ButtonIndex.Second;
        PlaceHolderText = "Please write your reply."
        ReplyMax = 160,
        Button = new ButtonAction
        {
            text = "Yes",
            ImagePath = "image path",
            Action = new AppControl{ ApplicationId = "org.tizen.app" };
        };
    };
    View Source

    ParentIndex

    Gets or sets the index of button, which appears at notification. If you set ParentIndex, ReplyAction is displayed when button matches with ParentIndex that is clicked by the user. If you don't set ParentIndex, it appears as notification directly.

    Declaration
    public ButtonIndex ParentIndex { get; set; }
    Property Value
    Type Description
    ButtonIndex
    View Source

    PlaceHolderText

    Gets or sets the PlaceHolderText of ReplyAction which appears at notification. If you set PlaceHolderText, it is displayed to placeholder in notification.

    Declaration
    public string PlaceHolderText { get; set; }
    Property Value
    Type Description
    string
    View Source

    ReplyMax

    Gets or sets the maximum number of characters that the user can input. You must set a ReplyMax. Otherwise user don't write text to placeholder in notification.

    Declaration
    public int ReplyMax { get; set; }
    Property Value
    Type Description
    int

    Default value is 160.

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