PAL SDK 与隐私权和法规相关的各种设置。这些设置有助于在生成 Nonce 信号时做出关于所用标识符的选择。
构造函数
ConsentSettings
新的 ConsentSettings()
媒体资源
allowStorage
boolean
PAL 是否就用途 1 征得用户同意使用标识符和存储。该值需要通过与 CMP(意见征求管理提供商)集成来确定。默认情况下,此属性设置为 false。如果指定为 true,则表示 PAL 已征得用户同意,可以使用 Cookie、设备 ID 和广告 ID 等信息。此值需要设置为符合 IAB TCFv2(透明度和用户意见征求框架)的要求。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2023-12-01。"],[[["The `ConsentSettings` class manages privacy and regulation settings within the PAL SDK, influencing how identifiers are used."],["`allowStorage`, determined by a Consent Management Provider (CMP), dictates whether PAL has consent to utilize identifiers and storage, defaulting to false for user privacy."],["Setting `allowStorage` to true signifies user consent for PAL to use cookies, device IDs, and advertising IDs, requiring compliance with IAB Transparency and Consent Framework (TCFv2)."]]],[]]