ConsentDebugSettings.Builder

Stay organized with collections Save and categorize content based on your preferences.
public static class ConsentDebugSettings.Builder extends Object

Builder of ConsentDebugSettings.

Public Constructor Summary

Builder(Context context)

Public Method Summary

ConsentDebugSettings.Builder
addTestDeviceHashedId(String hashedId)
Registers a device as a test device.
ConsentDebugSettings
build()
ConsentDebugSettings.Builder
setDebugGeography(int debugGeography)
Sets the debug geography for testing purposes.

Inherited Method Summary

Public Constructors

public Builder (Context context)

Parameters
context

Public Methods

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 ConsentInformation.requestConsentInfoUpdate(Activity, ConsentRequestParameters, ConsentInformation.OnConsentInfoUpdateSuccessListener, ConsentInformation.OnConsentInfoUpdateFailureListener)

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

public ConsentDebugSettings build ()

public ConsentDebugSettings.Builder setDebugGeography (int debugGeography)

Sets the debug geography for testing purposes.

Default value is ConsentDebugSettings.DebugGeography.DEBUG_GEOGRAPHY_DISABLED.

Parameters
debugGeography