Develop Secure Code
LocationService Data Types
getLocationService()
isAvailable()
getCurrentPosition(options)
startWatchingPosition(options, callback)
stopWatchingPosition(watchId)
getLocationService()Use this factory function to get an instance of LocationService.
1import { getLocationService } from 'lightning/mobileCapabilities';
2getLocationService(): LocationServiceNone
An instance of LocationService.
Use the instance to make location requests. There are no parameters or options when creating an instance.
See Also