Language

SecurityLocationMode Enum

Definition

Enumerates values returned by several types.

public enum SecurityLocationMode
type SecurityLocationMode = 
Inheritance
SecurityLocationMode

Fields

Name Value Description
Off 0

Location mode is off.

Android reference for android.provider.Settings.Secure.LOCATION_MODE_OFF.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SensorsOnly 1

This constant was deprecated in API level 28. See LOCATION_MODE.

On Android 9 and earlier, this mode enables GPS and disables network location. Starting with Android 10, this mode has no distinct meaning and is interpreted as location being on.

Android reference for android.provider.Settings.Secure.LOCATION_MODE_SENSORS_ONLY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

BatterySaving 2

This constant was deprecated in API level 28. See LOCATION_MODE.

On Android 9 and earlier, this mode enables network location and disables GPS. Starting with Android 10, this mode has no distinct meaning and is interpreted as location being on.

Android reference for android.provider.Settings.Secure.LOCATION_MODE_BATTERY_SAVING.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

HighAccuracy 3

This constant was deprecated in API level 28. See LOCATION_MODE.

On Android 9 and earlier, this mode enables both GPS and network location. Starting with Android 10, this mode has no distinct meaning and is interpreted as location being on.

Android reference for android.provider.Settings.Secure.LOCATION_MODE_HIGH_ACCURACY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to