ConsentDebugSettings.Builder

public class ConsentDebugSettings.Builder


ConsentDebugSettings binasının müteahhidi.

Özet

Herkese açık kurucular

Builder(Context context)

Herkese açık yöntemler

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

public Builder(Context context)

Herkese açık yöntemler

addTestDeviceHashedId

@CanIgnoreReturnValue
public ConsentDebugSettings.Builder addTestDeviceHashedId(String hashedId)

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

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

build

public ConsentDebugSettings build()

ConsentDebugSettings'ü oluşturur.

setDebugGeography

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

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

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