Created
August 12, 2021 15:25
-
-
Save barbeau/20517e4c30827f6890466e2a4ba47769 to your computer and use it in GitHub Desktop.
Flow - lightweight architecture article - LocationRepository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LocationRepository @Inject constructor( | |
private val sharedLocationManager: SharedLocationManager | |
) { | |
/** | |
* Observable flow for location updates | |
*/ | |
fun getLocations() = sharedLocationManager.locationFlow() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment