TextInputCallback

Callback for collection of a single text input attribute from a user.

Constructors

Link copied to clipboard
constructor()
constructor(raw: JSONObject?, index: Int)

Properties

Link copied to clipboard
protected var _id: Int
Link copied to clipboard
protected var content: String
Link copied to clipboard

The text to be used as the default text displayed with the prompt.

Link copied to clipboard

Get the prompt for this callback.

Functions

Link copied to clipboard
open override fun get_id(): Int

Return the unique id for this callback. The id only available with Callback that using PageCallback

Link copied to clipboard
open override fun getContent(): String

Return the raw content of the Callback.

Link copied to clipboard
protected open fun getContentAsJson(): JSONObject
Link copied to clipboard
private open fun getInput(content: JSONObject, index: Int): JSONObject
Link copied to clipboard
open fun getInputValue(): Any

Get the first value for input

open fun getInputValue(index: Int): Any

Get the value for input

Link copied to clipboard
protected open fun getName(jsonObject: JSONObject): String
Link copied to clipboard
open override fun getType(): String

Return the type of the Callback, the type name should align with the Callback type returned from AM

Link copied to clipboard
protected open override fun setAttribute(name: String, value: Any)
Link copied to clipboard
protected open fun setContent(jsonObject: JSONObject)

Sets the value of the Callback

Link copied to clipboard
protected open fun setValue(value: Any)

Set the first value for input

protected open fun setValue(value: Any, index: Int)

Set the value for the input.

fun setValue(value: String?)

Set the text.