Interface ISetEditable
interface ISetEditable
Extends com.amazon.apmf.IStandard
This interface allows describing an editable text field.
Methods
startEditingFunction()
Set the function to call when the client requests to start editing this field. This function can be called by UCC clients to ensure that the keyboard is visible and available for editing text.voidstartEditingFunction(ICallbackFunction*func)
Parameters
func
ICallbackFunction* — Required
the function to call to start editing this field.
selection()
Set the text selection or cursor position.voidselection(i32start,i32end)
selectionStart and
selectionEnd represent integer character offsets at which the text
selection begins and ends respectively. If they are equal, they represent
the position of the editing cursor. If not available, these properties may
be omitted or set to -1.
Parameters
start
i32 — Required
the selection start
end
i32 — Required
the selection end
textSelection()
Set the function to call when clients request to set the text selection.voidtextSelection(ISetTextSelection*func)
Parameters
func
ISetTextSelection* — Required
the ISetTextSelection to use.
hidden()
Indicate that the text in this field is hidden.voidhidden(boolhidden)
Parameters
hidden
bool — Required
true if the text is hidden.
searchField()
Indicate that this field is a search field.voidsearchField(boolisSearchField)
Parameters
isSearchField
bool — Required
true if this field is a search field.
searchResults()
Set the ID of the results container if this is a search field.voidsearchResults(ElementIdid)
Parameters
id
ElementId — Required
the element ID of the container displaying search results if
this is a search field.
multiLine()
Indicate that this field can contain multi-line text.voidmultiLine(boolmultiLine)
Parameters
multiLine
bool — Required
true if this field can contain multi-line text.
showingHintText()
Indicate that this field is currently showing hint text. This supports the pattern introduced by Google in Android by which the hint for a field is shown when the field is empty.voidshowingHintText(boolshow)
Parameters
show
bool — Required
true if this field is currently showing hint text.
contentInvalid()
Indicates that the contents of this field are currently invalid.voidcontentInvalid(boolinvalid)
Parameters
invalid
bool — Required
true if the contents are currently invalid.
inputType()
Set the input type for this field.voidinputType(InputType*inputType)
Parameters
inputType
InputType* — Required
the InputType.

