ConsentRequestParameters.Builder

public final class ConsentRequestParameters.Builder


ผู้สร้าง ConsentRequestParameters

สรุป

เครื่องมือสร้างสาธารณะ

เมธอดสาธารณะ

ConsentRequestParameters
ConsentRequestParameters.Builder

ตั้งค่า ConsentDebugSettings

ConsentRequestParameters.Builder

ตั้งค่ารหัสการซิงค์ความยินยอมเพื่อซิงค์สถานะความยินยอมของผู้ใช้ที่รวบรวมด้วยรหัสเดียวกัน

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)

ตั้งค่ารหัสการซิงค์ความยินยอมเพื่อซิงค์สถานะความยินยอมของผู้ใช้ที่รวบรวมด้วยรหัสเดียวกัน

รหัสการซิงค์ความยินยอมต้องเป็นไปตามข้อกำหนดต่อไปนี้

  • สร้างเป็นสตริง UUID ที่ตรงกับนิพจน์ทั่วไป (regex) ^[0-9a-zA-Z+.=\/_\-$,{}]{22,150}$
  • มีจำนวนอักขระอย่างน้อย 22 ตัว
  • มีจำนวนอักขระไม่เกิน 150 ตัว

หากไม่เป็นไปตามข้อกำหนด ระบบจะไม่ตั้งค่ารหัสการซิงค์ความยินยอม และ UMP SDK จะบันทึกคำเตือนไปยังคอนโซล

setTagForUnderAgeOfConsent

@CanIgnoreReturnValue
public ConsentRequestParameters.Builder setTagForUnderAgeOfConsent(boolean tagForUnderAgeOfConsent)

กำหนดว่าจะติดแท็กผู้ใช้ว่ามีอายุต่ำกว่าอายุที่ให้ความยินยอมได้หรือไม่

ค่าเริ่มต้นคือ false