ConsentDebugSettings.Builder

public class ConsentDebugSettings.Builder


Costruttore di ConsentDebugSettings.

Riepilogo

Costruttori pubblici

Builder(Context context)

Metodi pubblici

ConsentDebugSettings.Builder

Registra un dispositivo come dispositivo di test.

ConsentDebugSettings

Crea il ConsentDebugSettings.

ConsentDebugSettings.Builder

Imposta la località di debug a scopo di test.

Costruttori pubblici

Builder

public Builder(Context context)

Metodi pubblici

addTestDeviceHashedId

@CanIgnoreReturnValue
public ConsentDebugSettings.Builder addTestDeviceHashedId(String hashedId)

Registra un dispositivo come dispositivo di test. I dispositivi di test rispettano le impostazioni geografiche di debug per semplificare i test. I dispositivi di test devono essere aggiunti singolarmente in modo che le impostazioni geografiche di debug non vengano rilasciate accidentalmente a tutti gli utenti.

Puoi accedere a hashedDeviceId da logcat una volta che la tua app chiama requestConsentInfoUpdate

Parametri
String hashedId

L'ID dispositivo sottoposto ad hashing che deve essere considerato un dispositivo di debug.

build

public ConsentDebugSettings build()

Crea il ConsentDebugSettings.

setDebugGeography

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

Imposta la località di debug a scopo di test.

Il valore predefinito è DEBUG_GEOGRAPHY_DISABLED.