与隐私权和法规相关的 CAST DAI SDK 设置。这些设置有助于您就生成信号时要使用的标识符做出选择。
构造函数
ConsentSettings
new
ConsentSettings()
属性
allowStorage
布尔值
CAST DAI 是否已就使用标识符和存储功能征得目的 1 同意。
此值需要通过与 CMP(意见征求管理提供方)集成来确定。默认情况下,此值设置为 false。如果指定为 true,则表示 CAST DAI 已征得用户同意,可以使用 Cookie、设备 ID 和广告 ID 等信息。此值需要设置为符合 IAB TCFv2(透明度和用户意见征求框架)标准。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[[["\u003cp\u003eConsentSettings class in CAST DAI SDK manages privacy and regulation settings, focusing on identifier usage for signal generation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eallowStorage\u003c/code\u003e property, defaulting to false, dictates whether CAST DAI has user consent to utilize identifiers like cookies and device IDs for data storage and processing, requiring integration with a Consent Management Provider (CMP) and compliance with IAB TCFv2 for a 'true' value.\u003c/p\u003e\n"]]],[],null,["# Class: ConsentSettings\n\nConsentSettings\n===============\n\nclass public\n\nSettings on CAST DAI SDK related to privacy and regulations. The\nsettings can help make decisions about the choice regarding the identifiers\nused while generating signals.\n\nConstructor\n-----------\n\n### ConsentSettings\n\nnew\nConsentSettings()\n\nProperty\n--------\n\n### allowStorage\n\nboolean\n\nWhether CAST DAI has purpose 1 consent to use identifiers and storage.\nThe value needs to be determined by integrating with CMP (Consent\nManagement Provider). This is set to false by default. If specified as\ntrue, CAST DAI has consent from the user to use information like cookies,\ndevice IDs and advertising IDs. This value needs to be set to be IAB\nTCFv2 (Transparency and Consent Framework) compliant."]]