ConsentRequestParameters.Builder

public final class ConsentRequestParameters.Builder


ConsentRequestParameters のビルダー。

概要

パブリック コンストラクタ

パブリック メソッド

ConsentRequestParameters
ConsentRequestParameters.Builder

ConsentDebugSettings を設定します。

ConsentRequestParameters.Builder

同じ ID で収集されたユーザーの同意ステータスが同期されるように、同意の同期 ID を設定します。

ConsentRequestParameters.Builder
@CanIgnoreReturnValue
setTagForUnderAgeOfConsent(boolean tagForUnderAgeOfConsent)

ユーザーが同意年齢に満たないユーザーとしてタグ付けされているかどうかを設定します。

パブリック コンストラクタ

Builder

public Builder()

パブリック メソッド

build

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 です。