Location granularity levels to be used with APIs within FusedLocationProviderClient
.
Constant Summary
int | GRANULARITY_COARSE | The desired location granularity is always coarse, regardless of the client permission level. |
int | GRANULARITY_FINE | The desired location granularity is always fine, regardless of the client permission level. |
int | GRANULARITY_PERMISSION_LEVEL | The desired location granularity should correspond to the client permission level. |
Inherited Method Summary
Constants
public static final int GRANULARITY_COARSE
The desired location granularity is always coarse, regardless of the client
permission level. The client will be delivered coarse locations while it has the
Manifest.permission.ACCESS_FINE_LOCATION
or
Manifest.permission.ACCESS_COARSE_LOCATION
permission, and no location if it
lacks either.
public static final int GRANULARITY_FINE
The desired location granularity is always fine, regardless of the client permission
level. The client will be delivered fine locations while it has the
Manifest.permission.ACCESS_FINE_LOCATION
, and no location if it lacks that
permission.
public static final int GRANULARITY_PERMISSION_LEVEL
The desired location granularity should correspond to the client permission level.
The client will be delivered fine locations while it has the
Manifest.permission.ACCESS_FINE_LOCATION
permission, coarse locations while
it has only the
Manifest.permission.ACCESS_COARSE_LOCATION
permission, and no location if it
lacks either.