ConsentScreenOptions

data class ConsentScreenOptions : Parcelable


ConsentScreenOptions is a class that holds the information about the options for the consent screen in the permissions flow.

Summary

Public companion functions

ConsentScreenOptions
create(
    structureId: String?,
    allowedStructureIds: List<String>?,
    isAllowStructureChange: Boolean,
    invitationToken: String?,
    appScope: String?
)

Creates a ConsentScreenOptions instance.

Public companion properties

Parcelable.Creator<ConsentScreenOptions>

Public constructors

ConsentScreenOptions(
    structureId: String?,
    allowedStructureIds: List<String>?,
    isAllowStructureChange: Boolean,
    invitationToken: String?,
    appScope: String?
)

Public functions

open Unit
writeToParcel(dest: Parcel, flags: Int)

Public properties

List<String>?

Optional list of HGS structure IDs to filter the selection.

String?

Optional application scope to be associated with the current permissions flow.

String?

Optional invitation token to be used for accepting an invitation.

Boolean

Whether the user is allowed to change the preselected structure.

String?

Optional HGS structure ID to preselect.

Public companion functions

create

fun create(
    structureId: String? = null,
    allowedStructureIds: List<String>? = null,
    isAllowStructureChange: Boolean = false,
    invitationToken: String? = null,
    appScope: String? = null
): ConsentScreenOptions

Creates a ConsentScreenOptions instance.

Parameters
structureId: String? = null

Optional HGS structure ID to preselect.

allowedStructureIds: List<String>? = null

Optional list of HGS structure IDs to filter the selection.

isAllowStructureChange: Boolean = false

Whether the user is allowed to change the preselected structure.

invitationToken: String? = null

Optional invitation token to be used for accepting an invitation.

appScope: String? = null

Optional application scope to be associated with the current permissions flow.

Public companion properties

Public constructors

ConsentScreenOptions

ConsentScreenOptions(
    structureId: String?,
    allowedStructureIds: List<String>?,
    isAllowStructureChange: Boolean,
    invitationToken: String? = null,
    appScope: String? = null
)

Public functions

writeToParcel

open fun writeToParcel(dest: Parcel, flags: Int): Unit

Public properties

allowedStructureIds

val allowedStructureIdsList<String>?

Optional list of HGS structure IDs to filter the selection.

appScope

val appScopeString?

Optional application scope to be associated with the current permissions flow.

invitationToken

val invitationTokenString?

Optional invitation token to be used for accepting an invitation.

isAllowStructureChange

val isAllowStructureChangeBoolean

Whether the user is allowed to change the preselected structure.

structureId

val structureIdString?

Optional HGS structure ID to preselect.