ConsentScreenOptions

data class ConsentScreenOptions


Options to customize the consent screen.

Valid parameter combinations are:

  1. Invitation Flow: Only invitationToken is set. All other parameters must be null or false.

  2. Structure Migration: structureId is set, isAllowStructureChange is false, and allowedStructureIds is null/empty.

  3. Structure Hinting: structureId is set, isAllowStructureChange is true. allowedStructureIds can optionally be set to limit selection.

  4. No Structure Hinting (Default / Fallback): structureId is null, isAllowStructureChange is false, and allowedStructureIds is null/empty. Note: This is the recommended configuration to "Preselect nothing, allow selecting any structure". The WebView frontend will automatically default the structure change permission to true in this case.

Throws
kotlin.IllegalArgumentException

if an invalid combination of options is provided.

Summary

Public constructors

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

Public properties

List<String>?

The IDs of the structures that the user is allowed to grant permissions to.

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 structure that they want to grant permissions to.

String?

The ID of the structure that the user wants to grant permissions to.

Public constructors

ConsentScreenOptions

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

Public properties

allowedStructureIds

val allowedStructureIdsList<String>?

The IDs of the structures that the user is allowed to grant permissions to. Can only be set when isAllowStructureChange is true.

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. Not valid with any structure parameters.

isAllowStructureChange

val isAllowStructureChangeBoolean

Whether the user is allowed to change the structure that they want to grant permissions to.

structureId

val structureIdString?

The ID of the structure that the user wants to grant permissions to.