global Location Provider
Singleton wrapper around a location provider.
Example:
val provider: IExpoFpLocationProvider = YourLocationProvider()
ExpoFpPlan.globalLocationProvider.sharedProvider = provider
val presenter = ExpoFpPlan.createPlanPresenter(
planLink = ExpoFpLinkType.ExpoKey("YourExpoKey"),
locationProvider = ExpoFpPlan.globalLocationProvider
)
Content copied to clipboard
The plan may call startUpdatingLocation()
when it appears. Important: It will not call stopUpdatingLocation()
when it disappears. You are responsible for stopping the provider if needed.