v2.1.1
gdpr_dialog
用於從使用者取得個人化廣告與非個人化廣告之GDPR對話方塊的程式庫。
47喜歡 187近 30 天下載150Pub 分數
AndroidiOS
適用於 Flutter 的 GDPR 對話方塊
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
"showDialog()" calling: gets native request to android/ios Consent Form dialog and sets result as boolean:
Bool variable "isForTest" for testing library, set true to activate setDebugGeography. (works only for Android) In release build set false or delete this argument!
"testDeviceId" you can find in logs.
If user already chose one of Consent Form variants and call it a second time:
GdprDialog.instance.showDialog(isForTest: true, testDeviceId: 'xxxxxxxxxxxxxxx')
.then((onValue) {
print('result === $onValue');
});
In the release build, you only does not need a parameters.
GdprDialog.instance.getConsentStatus();
It will return string of consent status:
API, which depends on Android v2 Embedding, can not show you the real status of personalized ad.