ConsentDebugSettings.Builder

public class ConsentDebugSettings.Builder


Builder of ConsentDebugSettings.

Summary

Public constructors

Builder(Context context)

Public methods

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

public Builder(Context context)

Public methods

addTestDeviceHashedId

@CanIgnoreReturnValue
public ConsentDebugSettings.Builder addTestDeviceHashedId(String hashedId)

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
String hashedId

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

build

public ConsentDebugSettings build()

Builds the ConsentDebugSettings.

setDebugGeography

@CanIgnoreReturnValue
public ConsentDebugSettings.Builder setDebugGeography(
    @ConsentDebugSettings.DebugGeography int debugGeography
)

Sets the debug geography for testing purposes.

Default value is DEBUG_GEOGRAPHY_DISABLED.