edittime.js
AddAction(20,
af_none,
"Requires data consent opt-in",
"gdpr",
"Requires data consent opt-in",
"Calling this method will opt the current user in to using the services that you selected during process. This should be used for any services which don't provide their own opt-in dialogs. You can optionally pass in an array of service IDs to be opted into. You should only call this method after showing a clear consent dialog which contains all of the details regarding consent required by the affected SDKs.",
"requiresDataConsentOptIn"
);
AddStringParam("SDKs list", "JSON Array of SDK IDs, e.g. \"[\"\"appodeal\"\", \"\"admob\"\"]\" (optional).", '""');
AddAction(21,
af_none,
"Service terms opt-in",
"gdpr",
"Service terms opt-in",
"Calling this method will opt the current user in to using the services that you selected during process. This should be used for any services which don't provide their own opt-in dialogs. You can optionally pass in an array of service IDs to be opted into. You should only call this method after showing a clear consent dialog which contains all of the details regarding consent required by the affected SDKs.",
"serviceTermsOptIn"
);
AddStringParam("SDKs list", "JSON Array of SDK IDs, e.g. \"[\"\"appodeal\"\", \"\"admob\"\"]\" (optional).", '""')
AddAction(22,
af_none,
"Show service opt-in dialogs",
"gdpr",
"Show service opt-in dialogs",
"This method will instruct any services which contain built-in opt-in dialogs to display them. process will inform you about which services allow this type of opt-in. Using SDKs with built-in dialogs is the easiest way to ask your users whether they'd like to opt-in.",
"showServiceOptInDialogs"
);
AddAction(23,
af_none,
"Service terms opt-out",
"gdpr",
"Service terms opt-out",
"This explicit opt-out will instruct any gdpr compliant services that you're using that the user has specifically declined an opt-in to their data collection and processing. It can also be used to revert a previous opt-in decision by the user - if the user chooses to revoke their consent.",
"serviceTermsOptOut"
);
runtime.js
Acts.prototype.requiresDataConsentOptIn = function() {
if(typeof self["CordovaAdmobFree"] === "undefined") {
console.log(this.warningMsg);
return;
}
var resultCb = function(resultBool) {
window.CordovaAdmobFreePluginInstance.optInRequired = resultBool;
window.CordovaAdmobFreePluginRuntime.trigger(cr.plugins_.CordovaAdmobFreeIncConstructPlugin.prototype.cnds.onServiceOptInRequirement, window.CordovaAdmobFreePluginInstance);
};
self["CordovaAdmobFree"]["requiresDataConsentOptIn"](resultCb);
};
Acts.prototype.serviceTermsOptIn = function(sdksJson) {
if(typeof self["CordovaAdmobFree"] === "undefined") {
console.log(this.warningMsg);
return;
}
if(typeof sdksJson === "string" && sdksJson.length > 0) {
self["CordovaAdmobFree"]["serviceTermsOptIn"](JSON.parse(sdksJson));
} else {
self["CordovaAdmobFree"]["serviceTermsOptIn"]();
}
};
Acts.prototype.showServiceOptInDialogs = function(sdksJson) {
if(typeof self["CordovaAdmobFree"] === "undefined") {
console.log(this.warningMsg);
return;
}
var resultCb = function() {
window.CordovaAdmobFreePluginRuntime.trigger(cr.plugins_.CordovaAdmobFreeIncConstructPlugin.prototype.cnds.onDialogComplete, window.CordovaAdmobFreePluginInstance);
};
if(typeof sdksJson === "string" && sdksJson.length > 0) {
self["CordovaAdmobFree"]["showServiceOptInDialogs"](JSON.parse(sdksJson), resultCb)
} else {
self["CordovaAdmobFree"]["showServiceOptInDialogs"](null, resultCb);
}
};
Acts.prototype.serviceTermsOptOut = function() {
if(typeof self["CordovaAdmobFree"] === "undefined") {
console.log(this.warningMsg);
return;
}
self["CordovaAdmobFree"]["serviceTermsOptOut"]();
};