forgerock-auth
4.5.0
forgerock-auth
/
org.forgerock.android.auth.callback
/
AbstractPromptCallback
Abstract
Prompt
Callback
abstract
class
AbstractPromptCallback
:
AbstractCallback
Callback that has prompt attribute
Inheritors
NameCallback
PasswordCallback
KbaCreateCallback
ConfirmationCallback
ChoiceCallback
TextInputCallback
Members
Constructors
Abstract
Prompt
Callback
Link copied to clipboard
constructor
(
)
constructor
(
raw
:
JSONObject
,
index
:
Int
)
Properties
_id
Link copied to clipboard
protected
open
var
_id
:
Int
content
Link copied to clipboard
protected
open
var
content
:
String
prompt
Link copied to clipboard
open
var
prompt
:
String
Get the prompt for this callback.
VALUE
Link copied to clipboard
protected
val
VALUE
:
String
=
"value"
Functions
get_id
Link copied to clipboard
open
fun
get_id
(
)
:
Int
Get the _id received from server
get
Content
Link copied to clipboard
open
fun
getContent
(
)
:
String
Get the callback content
get
Content
As
Json
Link copied to clipboard
protected
open
fun
getContentAsJson
(
)
:
JSONObject
get
Input
Value
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
get
Name
Link copied to clipboard
protected
open
fun
getName
(
jsonObject
:
JSONObject
)
:
String
get
Type
Link copied to clipboard
abstract
fun
getType
(
)
:
String
Return the type of the Callback, the type name should align with the Callback type returned from AM
set
Attribute
Link copied to clipboard
protected
open
fun
setAttribute
(
name
:
String
,
value
:
Any
)
set
Content
Link copied to clipboard
protected
open
fun
setContent
(
jsonObject
:
JSONObject
)
Sets the value of the Callback
set
Value
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.