ConsentRequestParameters.Builder

public final class ConsentRequestParameters.Builder


בנאי של ConsentRequestParameters.

סיכום

יצרנים ציבוריים

שיטות ציבוריות

ConsentRequestParameters
ConsentRequestParameters.Builder

מגדיר את ConsentDebugSettings.

ConsentRequestParameters.Builder

מגדיר את מזהה סנכרון ההסכמה לסנכרון סטטוס ההסכמה של המשתמש שנאסף עם אותו מזהה.

ConsentRequestParameters.Builder
@CanIgnoreReturnValue
setTagForUnderAgeOfConsent(boolean tagForUnderAgeOfConsent)

הגדרה שקובעת אם המשתמש מתויג כמשתמש מתחת לגיל ההסכמה.

יצרנים ציבוריים

בנאי

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)

מגדיר את מזהה סנכרון ההסכמה לסנכרון סטטוס ההסכמה של המשתמש שנאסף עם אותו מזהה.

מזהה סנכרון ההסכמה צריך לעמוד בדרישות הבאות:

  • הערך בנוי כמחרוזת UUID שתואמת לביטוי הרגולרי (regex) ‏‎^[0-9a-zA-Z+.=\/_\-$,{}]{22,150}$‎
  • לפחות 22 תווים.
  • עד 150 תווים.

אם לא עומדים בדרישות, מזהה סנכרון ההסכמה לא מוגדר ו-UMP SDK רושם אזהרה במסוף.

setTagForUnderAgeOfConsent

@CanIgnoreReturnValue
public ConsentRequestParameters.Builder setTagForUnderAgeOfConsent(boolean tagForUnderAgeOfConsent)

הגדרה שקובעת אם המשתמש מתויג כמשתמש מתחת לגיל ההסכמה.

ערך ברירת המחדל הוא false.