與隱私權和法規相關的 CAST DAI SDK 設定。這些設定可協助您決定在產生信號時要使用的 ID。
建構函式
ConsentSettings
new
ConsentSettings()
屬性
allowStorage
布林值
CAST DAI 是否具有目的 1 同意聲明,可使用 ID 和儲存空間。
您必須整合 CMP (同意聲明管理服務供應商),才能判斷這個值。預設為 false。如果指定為「是」,CAST DAI 就會取得使用者同意,可使用 Cookie、裝置 ID 和廣告 ID 等資訊。這個值必須設為符合 IAB 資訊公開和同意聲明架構第 2 版 (資訊公開和同意聲明架構) 的規定。
[null,null,["上次更新時間: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."]]