MobileGeolocator

fun MobileGeolocator(permissionController: LocationPermissionController = LocationPermissionController.mobile(), dispatcher: CoroutineDispatcher = Dispatchers.Default): Geolocator

Create a new Geolocator instance for geolocation operations.

Make sure you read the Android documentation as well as the iOS documentation to understand the permissions and accuracy.

Return

A new Geolocator instance.

Parameters

permissionController

The LocationPermissionController to use for handling permissions.

dispatcher

The CoroutineDispatcher to use for geolocation operations.