Class Notification.ReplyAction
Definition
- Namespace:
- Tizen.Applications.Notifications
- Assembly:
- Tizen.Applications.Notification.dll
- API Level:
- 3
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 ReplyAction : Notification.MakerBase
- Inheritance
Properties
View SourceButton
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" };
};
};
API Level: 3
View SourceParentIndex
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 |
API Level: 3
View SourcePlaceHolderText
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 |
API Level: 3
View SourceReplyMax
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 |
---|---|
Int32 | Default value is 160. |