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.
C#Copypublic sealed class ReplyAction : Notification.MakerBase
- Inheritance
-
System.ObjectTizen.Applications.Notifications.Notification.MakerBaseNotification.ReplyAction
Properties
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
C#Copypublic 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
CopyReplyAction 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
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
C#Copypublic ButtonIndex ParentIndex { get; set; }
Property Value
Type | Description |
---|---|
ButtonIndex |
API Level: 3
PlaceHolderText
Gets or sets the PlaceHolderText of ReplyAction which appears at notification. If you set PlaceHolderText, it is displayed to placeholder in notification.
Declaration
C#Copypublic string PlaceHolderText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 3
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
C#Copypublic int ReplyMax { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Default value is 160. |