ConsentDebugSettings.Builder

class ConsentDebugSettings.Builder


Konstruktor ConsentDebugSettings.

Podsumowanie

Konstruktory publiczne

Builder(context: Context!)

Funkcje publiczne

ConsentDebugSettings.Builder!

Rejestruje urządzenie jako urządzenie testowe.

ConsentDebugSettings!

Kompiluje ConsentDebugSettings.

ConsentDebugSettings.Builder!

Ustawia region debugowania na potrzeby testów.

Konstruktory publiczne

Monter

Builder(context: Context!)

Funkcje publiczne

addTestDeviceHashedId

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

Rejestruje urządzenie jako urządzenie testowe. Urządzenia testowe uwzględniają ustawienia debugowania geografii, aby ułatwić testowanie. Urządzenia testowe muszą być dodawane pojedynczo, aby ustawienia debugowania geografii nie zostały przypadkowo udostępnione wszystkim użytkownikom.

Po wywołaniu przez aplikację funkcji requestConsentInfoUpdate możesz uzyskać dostęp do zaszyfrowanego identyfikatora urządzenia z logcat.

Parametry
hashedId: String!

Zaszyfrowany identyfikator urządzenia, który powinien być uważany za urządzenie do debugowania.

kompilacja

fun build(): ConsentDebugSettings!

Kompiluje ConsentDebugSettings.

setDebugGeography

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

Ustawia region debugowania na potrzeby testów.

Wartością domyślną jest DEBUG_GEOGRAPHY_DISABLED.