updatePrivacyAgree static method

Future<void> updatePrivacyAgree(
  1. bool hasAgree
)

设置是否已经取得用户同意,如果未取得用户同意,高德定位SDK将不会工作
高德SDK合规使用方案请参考官网地址:https://lbs.amap.com/news/sdkhgsy
必须保证在调用定位功能之前调用, 建议首次启动App时弹出《隐私政策》并取得用户同意
hasAgree 隐私权政策是否已经取得用户同意

Implementation

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