updatePrivacyAgree method

Future<void> updatePrivacyAgree(
  1. bool value
)

隐私是否已经同意

Implementation

Future<void> updatePrivacyAgree(bool value) async {
  return platform(
    android: (pool) async {
      final context = await android_app_Application.get();
      await com_amap_api_location_AMapLocationClient.updatePrivacyAgree(
        context,
        value,
      );
    },
    ios: (pool) async {
      await AMapLocationManager.updatePrivacyAgree(
        value
            ? AMapPrivacyAgreeStatus.AMapPrivacyAgreeStatusDidAgree
            : AMapPrivacyAgreeStatus.AMapPrivacyAgreeStatusNotAgree,
      );
    },
  );
}