LocationFromBuiltInGPS
class LocationFromBuiltInGPS(_appContext: Context) : LocationDataSource, DefaultLifecycleObserver, LocationListener
A class that defines the interface for getting locations from the Built-In GPS
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the list of the required ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION permissions for this Location Data Source. Optionally, the ACCESS_BACKGROUND_LOCATION permission may be required depending on the context of the application.
Link copied to clipboard
Specifies whether the built-In GPS is enabled.
Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"] )
Returns the last known location update.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called when the location has changed.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@RequiresPermission(anyOf = ["android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION"] )
Starts location updates from this Location Data Source