setAdSourcePrivacyPolicy method
Ad-network privacy/device policy (camelCase keys; nested maps allowed). Encoded to JSON and passed natively; default plugin store may only persist the JSON string.
Implementation
Future<String> setAdSourcePrivacyPolicy({
required Map<String, Object?> policy,
}) async {
final String policyJson = jsonEncode(policy);
print("setAdSourcePrivacyPolicy: $policyJson");
return await AnythinkSdk.channel.invokeMethod("setAdSourcePrivacyPolicy", {
"policyJson": policyJson,
});
}