ConsentDebugSettings.Builder

class ConsentDebugSettings.Builder


Builder of ConsentDebugSettings.

Summary

Public constructors

Builder(context: Context!)

Public functions

ConsentDebugSettings.Builder!

Registers a device as a test device.

ConsentDebugSettings!

Builds the ConsentDebugSettings.

ConsentDebugSettings.Builder!

Sets the debug geography for testing purposes.

Public constructors

Builder

Builder(context: Context!)

Public functions

addTestDeviceHashedId

@CanIgnoreReturnValue
fun addTestDeviceHashedId(hashedId: String!): ConsentDebugSettings.Builder!

Registers a device as a test device. Test devices respect debug geography settings to enable easier testing. Test devices must be added individually so that debug geography settings won't accidentally get released to all users.

You can access the hashedDeviceId from logcat once your app calls requestConsentInfoUpdate

Parameters
hashedId: String!

The hashed device ID that should be considered a debug device.

build

fun build(): ConsentDebugSettings!

Builds the ConsentDebugSettings.

setDebugGeography

@CanIgnoreReturnValue
fun setDebugGeography(
    @ConsentDebugSettings.DebugGeography debugGeography: Int
): ConsentDebugSettings.Builder!

Sets the debug geography for testing purposes.

Default value is DEBUG_GEOGRAPHY_DISABLED.