ExpoFpGlobalLocationProvider

Singleton wrapper around a location provider.

Example:

val provider: IExpoFpLocationProvider = YourLocationProvider()
ExpoFpGlobalLocationProvider.sharedProvider = provider

// Optionally start it
// ExpoFpGlobalLocationProvider.startUpdatingLocation()

val presenter = ExpoFpPlan.createPlanPresenter(
planLink = ExpoFpLinkType.ExpoKey("YourExpoKey"),
locationProvider = ExpoFpGlobalLocationProvider
)

The plan may call startUpdatingLocation() when it appears. Important: It will not call stopUpdatingLocation() when it disappears. Stop it yourself when needed.

Properties

Link copied to clipboard
Link copied to clipboard

Shared location provider. Set to null to remove.

Functions

Link copied to clipboard
open suspend override fun startUpdatingLocation()

Start updating location (coroutine variant).

Start updating location (callback variant, for non-coroutine callers).

Link copied to clipboard
open override fun stopUpdatingLocation()

Stop updating location.