ConsentDebugSettings.Builder

class ConsentDebugSettings.Builder


Costruttore di ConsentDebugSettings.

Riepilogo

Costruttori pubblici

Builder(context: Context!)

Funzioni pubbliche

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

Builder(context: Context!)

Funzioni pubbliche

addTestDeviceHashedId

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

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

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

setDebugGeography

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

Imposta la località di debug a scopo di test.

Il valore predefinito è DEBUG_GEOGRAPHY_DISABLED.