ConsentDebugSettings.Builder

public class ConsentDebugSettings.Builder


ConsentDebugSettings의 빌더입니다.

요약

공개 생성자

Builder(Context context)

공개 메서드

ConsentDebugSettings.Builder

기기를 테스트 기기로 등록합니다.

ConsentDebugSettings

ConsentDebugSettings를 빌드합니다.

ConsentDebugSettings.Builder

테스트를 위해 디버그 지역을 설정합니다.

공개 생성자

빌더

public Builder(Context context)

공개 메서드

addTestDeviceHashedId

@CanIgnoreReturnValue
public ConsentDebugSettings.Builder addTestDeviceHashedId(String hashedId)

기기를 테스트 기기로 등록합니다. 테스트 기기는 디버그 지역 설정을 준수하여 더 쉽게 테스트할 수 있습니다. 디버그 지역 설정이 실수로 모든 사용자에게 출시되지 않도록 테스트 기기를 개별적으로 추가해야 합니다.

앱에서 requestConsentInfoUpdate를 호출하면 Logcat에서 hashedDeviceId에 액세스할 수 있습니다.

매개변수
String hashedId

디버그 기기로 간주되어야 하는 해싱된 기기 ID입니다.

빌드

public ConsentDebugSettings build()

ConsentDebugSettings를 빌드합니다.

setDebugGeography

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

테스트를 위해 디버그 지역을 설정합니다.

기본값은 DEBUG_GEOGRAPHY_DISABLED입니다.