Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IEditableView

interface IEditableView
Extends IView Defines functionality of EditableView UI element to enter or modify text.

Methods

setLanguage()

void setLanguage(string language)
Sets the language for keyboard. If an invalid string is used as language, then “en_US” is used. The default value is “en_US”.

Parameters

language
string — Required string to set language of keyboard.

setSecure()

void setSecure(bool secure)
Sets whether IEditableView text is secure or not. By default, text is not secure.

Parameters

secure
bool — Required bool to make text of IEditableView secure.

setText()

void setText(string text)
Sets the text of the IEditableView. The default value is an empty string.

Parameters

text
string — Required string to set the text of IEditableView.

getText()

string getText()
Returns the current text displayed on an IEditableView.

Returns

string text of the IEditableView.

setTextStyle()

void setTextStyle(com.amazon.kepler.uitoolkit.graphics.ITextStyle* style)
Sets the text style of the IEditableView.

Parameters

style
com.amazon.kepler.uitoolkit.graphics.ITextStyle* — Required ITextStyle type to set Text style.

setPlaceholder()

void setPlaceholder(string placeholder)
Sets the placeholder text of the IEditableView. The default value is an empty string.

Parameters

placeholder
string — Required string to set placeholder text of the IEditableView.

setPlaceHolderTextStyle()

void setPlaceHolderTextStyle(com.amazon.kepler.uitoolkit.graphics.ITextStyle* style)
Set placeholder text style of an IEditableView.

Parameters

style
com.amazon.kepler.uitoolkit.graphics.ITextStyle* — Required ITextStyle to set placeholder text style.

setParagraphTextStyle()

void setParagraphTextStyle(com.amazon.kepler.uitoolkit.graphics.IParagraphStyle* style)
Set the paragraph style of IEditableView.

Parameters

style
com.amazon.kepler.uitoolkit.graphics.IParagraphStyle* — Required IParagraphStyle to set placeholder text style.

getParagraphTextStyle()

com.amazon.kepler.uitoolkit.graphics.IParagraphStyle* getParagraphTextStyle()
Gets the paragraph style of IEditableView.

Returns

com.amazon.kepler.uitoolkit.graphics.IParagraphStyle* IParagraphStyle object for the paragraph style of IEditableView.

setSelectionColor()

void setSelectionColor(com.amazon.kepler.uitoolkit.graphics.Color* color)
Sets a color of the highlighted text. The default color is Black = {255, 0, 0, 0}.

Parameters

color
com.amazon.kepler.uitoolkit.graphics.Color* — Required The color to associate with the selected (highlighted) text.

setAlwaysShowCursor()

void setAlwaysShowCursor(bool show)
Sets a flag to explicitly show the cursor, even when the editable is not in focus. By default, the cursor will not be shown if the editable is not in focus. Note that the cursor will be shown when the editable is in focus regardless of this setting.

Parameters

show
bool — Required If true, then show the cursor on the unfocused editable.

setCursorColor()

void setCursorColor(com.amazon.kepler.uitoolkit.graphics.Color* color)
Sets the Color of the cursor. The default color of the cursor is the same as the text color.

Parameters

color
com.amazon.kepler.uitoolkit.graphics.Color* — Required The Color to associate with the cursor.

setCursorWidth()

void setCursorWidth(float cursorWidth)
Sets the width of the cursor. The default cursor width is 2.0.

Parameters

cursorWidth
float — Required Float value of cursor width.

getCursorWidth()

float getCursorWidth()
Gets the width of the cursor.

Returns

float The current width of the cursor.

obfuscate()

void obfuscate(string obscuringCharacter)
Sets the character used to obscure text when IEditableView is set to secure. This is used to hide sensitive user information like passwords. The default value of this is set to ”.”.

Parameters

obscuringCharacter
string — Required Character used to obscure.

getObfuscatingCharacter()

string getObfuscatingCharacter()
Gets the character used to obscure text.

Returns

string String used to obscure text.

setInputFlags()

void setInputFlags(com.amazon.kepler.intl.input_method.InputFlag[] inputFlags)
Sets the list of input flags on the keyboard.

Parameters

inputFlags
com.amazon.kepler.intl.input_method.InputFlag[] — Required list of enum of type InputFlag.

setInputType()

void setInputType(com.amazon.kepler.intl.input_method.InputType* inputType)
Sets the input type of the keyboard. The default input type is InputType::NORMAL.

Parameters

inputType
com.amazon.kepler.intl.input_method.InputType* — Required Enum of type InputType.

setInputAction()

void setInputAction(com.amazon.kepler.intl.input_method.InputAction* inputAction)
Set the text in the return button of the keyboard and decides the type of action taken on click of the return key. The default action is InputAction::NONE, where the keyboard shows the regular “Enter” text on the return key and performs no special action.

Parameters

inputAction
com.amazon.kepler.intl.input_method.InputAction* — Required enum of type InputAction.

setInputUiMode()

void setInputUiMode(com.amazon.kepler.intl.input_method.InputUiMode* inputUiMode)
Sets the user interface mode for the keyboard. The default mode is InputUiMode::FULL_SCREEN.

Parameters

inputUiMode
com.amazon.kepler.intl.input_method.InputUiMode* — Required enum value of type InputUiMode

setInputUiRegion()

void setInputUiRegion(com.amazon.kepler.uitoolkit.graphics.Rect* inputUiRegion)
Sets the rectangular region only when InputUiMode::FLOATING. is “FLOATING”, ignored otherwise. The default value is {0.0,0.0,0.0,0.0}.

Parameters

inputUiRegion
com.amazon.kepler.uitoolkit.graphics.Rect* — Required float coordinates of type Rect

setSpellCheck()

void setSpellCheck(bool spellCheck)
Enable or disable spell check on IEditableView. By default, spell check is disabled.

Parameters

spellCheck
bool — Required Bool to enable/disable spell check.

showKeyboardOnFocus()

void showKeyboardOnFocus(bool show)
Opens the on-screen keyboard on focus on the IEditableView.

Parameters

show
bool — Required If true, then the on-screen keyboard is shown, otherwise no action.

closeKeyboard()

void closeKeyboard()

setAuxiliaryOptions()

void setAuxiliaryOptions(IAuxiliaryOptions* options)
Sets auxiliary options which are used to customize keyboard layouts like keyboardTitle, actionButton labels etc.

Parameters

options
IAuxiliaryOptions* — Required Pointer to IAuxiliaryOptions object.

setEnabled()

void setEnabled(bool enabled)
Enables or disables the IEditableView. By default, IEditableView is enabled.

Parameters

enabled
bool — Required Bool to enable/disable editing
Last modified on October 29, 2026