ConsentRequestParameters.Builder

class ConsentRequestParameters.Builder


ConsentRequestParameters को बनाने वाला.

खास जानकारी

पब्लिक कंस्ट्रक्टर

पब्लिक फ़ंक्शन

ConsentRequestParameters!
ConsentRequestParameters.Builder!

ConsentDebugSettings को सेट करता है.

ConsentRequestParameters.Builder!

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

ConsentRequestParameters.Builder!

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

पब्लिक कंस्ट्रक्टर

निर्माता

Builder()

पब्लिक फ़ंक्शन

बिल्ड

fun build(): ConsentRequestParameters!

setConsentDebugSettings

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

ConsentDebugSettings को सेट करता है.

अगर null है, तो डीबग सेटिंग का इस्तेमाल नहीं किया जाएगा.

setConsentSyncId

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

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

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

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

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

setTagForUnderAgeOfConsent

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

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

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