updatePrivacyAgree static method

Future<void> updatePrivacyAgree(
  1. bool hasAgree
)

确保调用SDK任何接口前先调用更新隐私合规updatePrivacyShow、updatePrivacyAgree两个接口并且参数值都为true,若未正确设置有崩溃风险

Implementation

static Future<void> updatePrivacyAgree(bool hasAgree) async {
  await _channel.invokeMethod('updatePrivacyAgree', {
    'hasAgree': hasAgree,
  });
}