known
Transforms a Flow of LocationState into a flow of its associated optional Location.KnownLocation
Return
a Flow of the Location.KnownLocation associated with the LocationState, emitting null
if the maxAge is reached.
Parameters
maxAge
Controls both the max age of a location by filtering out locations that are older and is used to set a timeout for the last emission that will emit null when triggered
Gets the Location.KnownLocation from a Location if it exists. Otherwise null
is returned