forgerock-auth
4.4.0
forgerock-auth
/
org.forgerock.android.auth.callback
/
TermsAndConditionsCallback
Terms
And
Conditions
Callback
open
class
TermsAndConditionsCallback
:
AbstractCallback
A callback to collect a user's acceptance of the configured Terms &Conditions.
Members
Constructors
Terms
And
Conditions
Callback
Link copied to clipboard
constructor
(
raw
:
JSONObject
,
index
:
Int
)
constructor
(
)
Properties
_id
Link copied to clipboard
protected
open
var
_id
:
Int
content
Link copied to clipboard
protected
open
var
content
:
String
create
Date
Link copied to clipboard
private
open
var
createDate
:
String
The create date of the Terms &Conditions.
terms
Link copied to clipboard
private
open
var
terms
:
String
Retrieve the Terms &Conditions.
VALUE
Link copied to clipboard
protected
val
VALUE
:
String
=
"value"
version
Link copied to clipboard
private
open
var
version
:
String
Retrieves the version.
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 Terms have 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.