ConsentRequestParameters.Builder

class ConsentRequestParameters.Builder


ConsentRequestParameters のビルダー。

概要

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

パブリック関数

ConsentRequestParameters!
ConsentRequestParameters.Builder!

ConsentDebugSettings を設定します。

ConsentRequestParameters.Builder!

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

ConsentRequestParameters.Builder!

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

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

Builder

Builder()

パブリック関数

setConsentDebugSettings

@CanIgnoreReturnValue
fun setConsentDebugSettings(consentDebugSettings: ConsentDebugSettings?): ConsentRequestParameters.Builder!

ConsentDebugSettings を設定します。

null の場合、デバッグ設定は使用されません。

setConsentSyncId

@CanIgnoreReturnValue
fun setConsentSyncId(consentSyncId: String!): ConsentRequestParameters.Builder!

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

同意の同期 ID は次の要件を満たしている必要があります。

  • 正規表現(regex)^[0-9a-zA-Z+.=\/_\-$,{}]{22,150}$ に一致する UUID 文字列として構築されます。
  • 22 文字以上であること。
  • 150 文字以内であること。

要件を満たしていない場合、同意の同期 ID は設定されず、UMP SDK はコンソールに警告を記録します。

setTagForUnderAgeOfConsent

@CanIgnoreReturnValue
fun setTagForUnderAgeOfConsent(tagForUnderAgeOfConsent: Boolean): ConsentRequestParameters.Builder!

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

デフォルト値は false です。