ConsentDebugSettings.Builder

class ConsentDebugSettings.Builder


ConsentDebugSettings binasının müteahhidi.

Özet

Herkese açık kurucular

Builder(context: Context!)

Herkese açık işlevler

ConsentDebugSettings.Builder!

Bir cihazı test cihazı olarak kaydeder.

ConsentDebugSettings!

ConsentDebugSettings'ü oluşturur.

ConsentDebugSettings.Builder!

Test amacıyla hata ayıklama coğrafyasını ayarlar.

Herkese açık kurucular

Derleyici

Builder(context: Context!)

Herkese açık işlevler

addTestDeviceHashedId

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

Bir cihazı test cihazı olarak kaydeder. Test cihazları, daha kolay test yapılmasını sağlamak için hata ayıklama coğrafi konum ayarlarına uyar. Hata ayıklama coğrafi ayarları yanlışlıkla tüm kullanıcılara dağıtılmaması için test cihazları tek tek eklenmelidir.

Uygulamanız requestConsentInfoUpdate işlevini çağırdıktan sonra logcat'ten hashedDeviceId'ye erişebilirsiniz.

Parametreler
hashedId: String!

Hata ayıklama cihazı olarak kabul edilmesi gereken karma oluşturma işlemi uygulanmış cihaz kimliği.

build

fun build(): ConsentDebugSettings!

ConsentDebugSettings'ü oluşturur.

setDebugGeography

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

Test amacıyla hata ayıklama coğrafyasını ayarlar.

Varsayılan değer DEBUG_GEOGRAPHY_DISABLED'tür.