ConsentRequestParameters.Builder

public final class ConsentRequestParameters.Builder


ConsentRequestParameters의 빌더입니다.

요약

공개 생성자

공개 메서드

ConsentRequestParameters
ConsentRequestParameters.Builder

ConsentDebugSettings를 설정합니다.

ConsentRequestParameters.Builder

동일한 ID로 수집된 사용자 동의 상태를 동기화하도록 동의 동기화 ID를 설정합니다.

ConsentRequestParameters.Builder
@CanIgnoreReturnValue
setTagForUnderAgeOfConsent(boolean tagForUnderAgeOfConsent)

사용자가 동의 연령 미만으로 태그되었는지 여부를 설정합니다.

공개 생성자

빌더

public Builder()

공개 메서드

빌드

public ConsentRequestParameters build()

setConsentDebugSettings

@CanIgnoreReturnValue
public ConsentRequestParameters.Builder setConsentDebugSettings(
    @Nullable ConsentDebugSettings consentDebugSettings
)

ConsentDebugSettings를 설정합니다.

null인 경우 디버그 설정이 사용되지 않습니다.

setConsentSyncId

@CanIgnoreReturnValue
public ConsentRequestParameters.Builder setConsentSyncId(String consentSyncId)

동일한 ID로 수집된 사용자 동의 상태를 동기화하도록 동의 동기화 ID를 설정합니다.

동의 동기화 ID는 다음 요구사항을 충족해야 합니다.

  • 정규 표현식 (regex) ^[0-9a-zA-Z+.=\/_\-$,{}]{22,150}$과 일치하는 UUID 문자열로 구성됩니다.
  • 22자 이상이어야 합니다.
  • 최대 150자(영문 기준)

요구사항을 충족하지 않으면 동의 동기화 ID가 설정되지 않고 UMP SDK가 콘솔에 경고를 로깅합니다.

setTagForUnderAgeOfConsent

@CanIgnoreReturnValue
public ConsentRequestParameters.Builder setTagForUnderAgeOfConsent(boolean tagForUnderAgeOfConsent)

사용자가 동의 연령 미만으로 태그되었는지 여부를 설정합니다.

기본값은 false입니다.