forgerock-auth
4.4.0
forgerock-auth
/
org.forgerock.android.auth.callback
/
DeviceProfileCallback
Device
Profile
Callback
open
class
DeviceProfileCallback
:
AbstractCallback
,
ActionCallback
Members
Constructors
Device
Profile
Callback
Link copied to clipboard
constructor
(
)
constructor
(
jsonObject
:
JSONObject
,
index
:
Int
)
Properties
_id
Link copied to clipboard
protected
open
var
_id
:
Int
content
Link copied to clipboard
protected
open
var
content
:
String
location
Link copied to clipboard
private
open
var
location
:
Boolean
Request the SDK to capture device location.
message
Link copied to clipboard
private
open
var
message
:
String
The message which should be displayed to the user
metadata
Link copied to clipboard
private
open
var
metadata
:
Boolean
Request the SDK to capture device metadata.
VALUE
Link copied to clipboard
protected
val
VALUE
:
String
=
"value"
Functions
execute
Link copied to clipboard
open
fun
execute
(
context
:
Context
,
listener
:
FRListener
<
Void
>
)
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
open
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.
open
fun
setValue
(
value
:
String
)