Location Provider
interface LocationProvider
An interface containing Flows through which you can provide location and heading updates to a CustomLocationDataSource.
Note that this API does not provide status updates to the LocationProvider, meaning that if you use a SharedFlow, it will continue emitting after the CustomLocationDataSource is stopped. The CustomLocationDataSource will stop collecting when CustomLocationDataSource.stop is called, at which point it will no longer be a subscriber to the SharedFlow. Refer to the official documentation of Flow and SharedFlow for more information on how to observe the number of subscribers from the emission source. Alternatively, use a cold Flow, ie. by using the flow
builder, if it does not need to be collected in multiple places.
Since
200.0.0