accuracy_setting 1.0.0 copy "accuracy_setting: ^1.0.0" to clipboard
accuracy_setting: ^1.0.0 copied to clipboard

outdated

Get Location Accuracy Setting, Sometimes you need higher accuracy to get better results, or you need to make sure GPS is activated. If so, this plugin is for you.

accuracy_setting #

Get Location Accuracy Setting

Get Accuracy #

AccuracySettingMode mode = await AccuracySetting.getAccuracySetting();
print(mode);

Response #

LOCATION_MODE_OFF,
LOCATION_MODE_SENSORS_ONLY,
LOCATION_MODE_BATTERY_SAVING,
LOCATION_MODE_HIGH_ACCURACY,
NOT_IMPLEMENTED, // if API < 19 or API >= 28

Get Provider Enabled #

return true if enabled

if (await AccuracySetting.getProviderEnabled(LocationProvider.GPS)) {
  print("GPS Active");
}

if (await AccuracySetting.getProviderEnabled(LocationProvider.NETWORK)) {
  print("Network Active");
}

Author #

This plugin for Flutter is developed by Fuad Ar-Radhi.

3
likes
30
pub points
0%
popularity

Publisher

verified publisherfuadarradhi.com

Get Location Accuracy Setting, Sometimes you need higher accuracy to get better results, or you need to make sure GPS is activated. If so, this plugin is for you.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on accuracy_setting