getLocationService()

Use this factory function to get an instance of LocationService.

Syntax 

1import { getLocationService } from 'lightning/mobileCapabilities';
2getLocationService(): LocationService

Parameters 

None

Returns 

An instance of LocationService.

Usage 

Use the instance to make location requests. There are no parameters or options when creating an instance.

See Also