-
- All Implemented Interfaces:
-
com.glia.androidsdk.chat.MessageAttachment
public interface SingleChoiceAttachment implements MessageAttachment
Presents the user with the list of options to make a simplified decision for the next interaction. Selected option needs to be sent back to the other party as a regular chat message containing single choice response attachment.
-
-
Method Summary
Modifier and Type Method Description abstract Array<SingleChoiceOption>getOptions()The options of the single choice message. abstract StringgetSelectedOption()The selected option. abstract Optional<String>getImageUrl()URL of an image displayed on top of the choices expressing clear intent of the single choice card -
-
Method Detail
-
getOptions
abstract Array<SingleChoiceOption> getOptions()
The options of the single choice message.
-
getSelectedOption
abstract String getSelectedOption()
The selected option. Only available when an answer has been given to a single choice attachment.
-
getImageUrl
abstract Optional<String> getImageUrl()
URL of an image displayed on top of the choices expressing clear intent of the single choice card
-
-
-
-