gdpr_dialog_flutter
用于从用户获取个性化广告和非个性化广告的GDPR对话框的库。
KhilanVitthani/gdpr_dialog_flutter open-source repository details.
以下为英文项目原文快照,最新内容请访问 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:
GdprDialogFlutter.instance.showDialog(isForTest: true, testDeviceId: 'xxxxxxxxxxxxxxx')
.then((onValue) {
print('result === $onValue');
});
In the release build, you only does not need a parameters.
GdprDialogFlutter.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.
依赖清单 4 项
{"sdk":"flutter"}^2.0.2{"sdk":"flutter"}^4.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗