# ConsentScreenOptions


```
data class ConsentScreenOptions : Parcelable
```

<br />

*** ** * ** ***

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

## Summary

| ### Public companion functions |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#create(kotlin.String,kotlin.collections.List,kotlin.Boolean,kotlin.String,kotlin.String,kotlin.String)( structureId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, allowedStructureIds: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>?, isAllowStructureChange: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, invitationToken: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, appScope: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, locale: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? )` Creates a ConsentScreenOptions instance. |

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions>` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#CREATOR()` |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#ConsentScreenOptions(kotlin.String,kotlin.collections.List,kotlin.Boolean,kotlin.String,kotlin.String,kotlin.String)( structureId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, allowedStructureIds: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>?, isAllowStructureChange: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, invitationToken: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, appScope: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, locale: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? )` |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#writeToParcel(android.os.Parcel,kotlin.Int)(dest: https://developer.android.com/reference/android/os/Parcel.html, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>?` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#allowedStructureIds()` Optional list of HGS structure IDs to filter the selection. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#appScope()` Optional application scope to be associated with the current permissions flow. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#invitationToken()` Optional invitation token to be used for accepting an invitation. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#isAllowStructureChange()` Whether the user is allowed to change the preselected structure. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#locale()` Optional BCP-47 language tag the webview screen should be rendered in. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/android/gms/home/permissions/ConsentScreenOptions#structureId()` 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,
    locale: String? = null
): ConsentScreenOptions
```

Creates a ConsentScreenOptions instance.

| Parameters |
|---|---|
| `structureId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? = null` | Optional HGS structure ID to preselect. |
| `allowedStructureIds: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>? = null` | Optional list of HGS structure IDs to filter the selection. |
| `isAllowStructureChange: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html = false` | Whether the user is allowed to change the preselected structure. |
| `invitationToken: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? = null` | Optional invitation token to be used for accepting an invitation. |
| `appScope: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? = null` | Optional application scope to be associated with the current permissions flow. |
| `locale: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html? = null` | Optional BCP-47 language tag the webview should be rendered in. |

## Public companion properties

### CREATOR

```
val CREATOR: Parcelable.Creator<ConsentScreenOptions>
```

## Public constructors

### ConsentScreenOptions

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

## Public functions

### writeToParcel

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

## Public properties

### allowedStructureIds

```
val allowedStructureIds: List<String>?
```

Optional list of HGS structure IDs to filter the selection.

### appScope

```
val appScope: String?
```

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

### invitationToken

```
val invitationToken: String?
```

Optional invitation token to be used for accepting an invitation.

### isAllowStructureChange

```
val isAllowStructureChange: Boolean
```

Whether the user is allowed to change the preselected structure.

### locale

```
val locale: String?
```

Optional BCP-47 language tag the webview screen should be rendered in. When absent, will fallback to the device locale.

### structureId

```
val structureId: String?
```

Optional HGS structure ID to preselect.