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)

यह कुकी, सहमति सिंक करने के लिए आईडी सेट करती है, ताकि एक ही आईडी से इकट्ठा की गई उपयोगकर्ता की सहमति की स्थिति को सिंक किया जा सके.

सहमति सिंक करने वाले आईडी को इन ज़रूरी शर्तों को पूरा करना होगा:

  • इसे यूयूआईडी स्ट्रिंग के तौर पर बनाया गया है. यह रेगुलर एक्सप्रेशन (रेगुलर एक्सप्रेशन) ^[0-9a-zA-Z+.=\/_\-$,{}]{22,150}$ से मेल खाता है
  • कम से कम 22 वर्ण ज़रूरी हैं.
  • ज़्यादा से ज़्यादा 150 वर्ण.

ज़रूरी शर्तें पूरी न करने पर, सहमति सिंक करने के लिए आईडी सेट नहीं किया जाता है. साथ ही, UMP SDK कंसोल में चेतावनी लॉग करता है.

setTagForUnderAgeOfConsent

@CanIgnoreReturnValue
public ConsentRequestParameters.Builder setTagForUnderAgeOfConsent(boolean tagForUnderAgeOfConsent)

यह कुकी सेट करती है कि उपयोगकर्ता को सहमति देने की कानूनी उम्र से कम उम्र के लिए टैग किया गया है या नहीं.

डिफ़ॉल्ट वैल्यू false है.