ConsentSettings.Builder

@AutoValue.Builder
abstract class ConsentSettings.Builder


A builder for generating ConsentSettings objects.

Summary

Public constructors

Public functions

abstract ConsentSettings.Builder!

Sets whether PAL is allowed to access storage on the device to include identifiers like device id.

abstract ConsentSettings!

Build the ConsentSettings.

abstract ConsentSettings.Builder!

Sets whether PAL is used for an ad request directed to a child or user of unknown age, according to Google Play policy.

Public constructors

Builder

Builder()

Public functions

allowStorage

abstract fun allowStorage(toggle: Boolean!): ConsentSettings.Builder!

Sets whether PAL is allowed to access storage on the device to include identifiers like device id. This should only be used when the publisher has verified consent to storage compliance with the relevant regulations for the given user. This is set to false by default.

build

abstract fun build(): ConsentSettings!

Build the ConsentSettings.

directedForChildOrUnknownAge

abstract fun directedForChildOrUnknownAge(toggle: Boolean!): ConsentSettings.Builder!

Sets whether PAL is used for an ad request directed to a child or user of unknown age, according to Google Play policy.