forgerock-auth
4.4.0
forgerock-auth
/
org.forgerock.android.auth.callback
/
ConsentMappingCallback
Consent
Mapping
Callback
open
class
ConsentMappingCallback
:
AbstractCallback
Callback to collect user's Consent.
Members
Constructors
Consent
Mapping
Callback
Link copied to clipboard
constructor
(
)
constructor
(
jsonObject
:
JSONObject
,
index
:
Int
)
Properties
_id
Link copied to clipboard
protected
open
var
_id
:
Int
access
Level
Link copied to clipboard
private
open
var
accessLevel
:
String
content
Link copied to clipboard
protected
open
var
content
:
String
display
Name
Link copied to clipboard
private
open
var
displayName
:
String
fields
Link copied to clipboard
private
open
var
fields
:
Array
<
String
>
icon
Link copied to clipboard
private
open
var
icon
:
String
is
Required
Link copied to clipboard
private
open
var
isRequired
:
Boolean
message
Link copied to clipboard
private
open
var
message
:
String
name
Link copied to clipboard
private
open
var
name
:
String
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
open
fun
getType
(
)
:
String
Return the type of the Callback, the type name should align with the Callback type returned from AM
set
Accept
Link copied to clipboard
open
fun
setAccept
(
accept
:
Boolean
)
Sets whether the Consent has been accepted.
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.