public final class SrnRemoteInputAction extends SrnAction
Modifier and Type | Class and Description |
---|---|
static class |
SrnRemoteInputAction.InputModeFactory
Creates InputMode objects for its purpose.
|
static class |
SrnRemoteInputAction.KeyboardInputMode
This class represents string input with the keyboard on the wearable.
|
static class |
SrnRemoteInputAction.MultiSelectInputMode
This class represents an input mode where the user can pick multiple items on a list.
|
static class |
SrnRemoteInputAction.SingleSelectInputMode
This class represents an input mode where the user can pick a single item on a list.
|
SrnAction.CallbackIntent
Constructor and Description |
---|
SrnRemoteInputAction(String label)
Constructs a new input action.
|
SrnRemoteInputAction(String label,
com.samsung.android.sdk.richnotification.actions.SrnRemoteInputAction.InputMode inputMode)
Constructs a new input action with desired input mode.
|
Modifier and Type | Method and Description |
---|---|
void |
setDescription(String description)
Sets the informative description for the input request.
|
void |
setIcon(SrnImageAsset icon)
Sets the icon for this action.
|
void |
setRequestedInputMode(com.samsung.android.sdk.richnotification.actions.SrnRemoteInputAction.InputMode inputMode)
Sets the requested input mode.
|
setCallbackIntent
public SrnRemoteInputAction(String label)
Keyboard mode is the default input mode.
label
- the label to setNullPointerException
- If label is null.IllegalArgumentException
- If label is an empty string.public SrnRemoteInputAction(String label, com.samsung.android.sdk.richnotification.actions.SrnRemoteInputAction.InputMode inputMode)
label
- the label to setinputMode
- One of input modes.NullPointerException
- If inputMode is null.NullPointerException
- If label is null.IllegalArgumentException
- If label is an empty string.public void setDescription(String description)
Depending on the input mode decided by the client, and also its UX/UI model determines if it will be shown or not. It's recommended to always set it.
description
- the description to setpublic void setRequestedInputMode(com.samsung.android.sdk.richnotification.actions.SrnRemoteInputAction.InputMode inputMode)
Depending on the clients input capabilities (eg. touch screen, microphone, on-screen keyboard, etc) the requested input mode will be used. If it's not supported the client will decide to set another mode or generate an error for this rich notification.
inputMode
- the inputMode to requestNullPointerException
- If inputMode is null.public void setIcon(SrnImageAsset icon)
icon
- the icon to setCopyright © Samsung Electronics, Co., Ltd. All rights reserved.