react-native-vision-camera-locationHybridObjects
LocationManager
interface LocationManager extends HybridObjectProperties
lastKnownLocation
readonly lastKnownLocation:
| Location
| undefinedGet the last known Location, or undefined
if no location is known.
locationPermissionStatus
readonly locationPermissionStatus: PermissionStatusGet the current location permission status.
The PermissionStatus depends on this
LocationManager's configuration, as
properties like LocationAccuracy affect
locationPermissionStatus.
Methods
addOnLocationChangedListener()
addOnLocationChangedListener(callback: (location: Location) => void): ListenerSubscriptionAdds a callback to be called whenever the
current Location changes.
requestLocationPermission()
requestLocationPermission(): Promise<boolean>Request location permission.
startUpdating()
startUpdating(): Promise<void>Start updating location updates.
Throws
If locationPermissionStatus is not 'authorized'.
stopUpdating()
stopUpdating(): Promise<void>Stop updating location updates.