LocationStateRepo
class LocationStateRepo(settingsBuilder: suspend (CoroutineContext) -> BaseLocationManager.Settings, builder: BaseLocationManager.Builder, coroutineContext: CoroutineContext) : LocationStateImplRepo
A LocationStateImplRepo using a BaseLocationManager
Parameters
settingsBuilder
method for creating BaseLocationManager.Settings
builder
the BaseLocationManager.Builder for building a BaseLocationManager
coroutineContext
the CoroutineContext the CoroutineContext used to create a coroutine scope for this state machine
Constructors
Link copied to clipboard
constructor(settingsBuilder: suspend (CoroutineContext) -> BaseLocationManager.Settings, builder: BaseLocationManager.Builder, coroutineContext: CoroutineContext)
Properties
Link copied to clipboard
Link copied to clipboard
val deinitChangeStateWithRepo: suspend (LocationState, ColdStateFlowRepo<LocationState>) -> suspend () -> LocationState?
Link copied to clipboard
Link copied to clipboard
val initChangeStateWithRepo: suspend (LocationState, ColdStateFlowRepo<LocationState>) -> suspend () -> LocationState
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Transforms a Flow of LocationState into a flow of its associated optional Location.KnownLocation
Link copied to clipboard
Link copied to clipboard
fun launchTakeAndChangeState(context: CoroutineContext, action: suspend (LocationState) -> suspend () -> LocationState): Job
fun <K : LocationState> launchTakeAndChangeState(context: CoroutineContext, remainIfStateNot: KClass<K>, action: suspend (K) -> suspend () -> LocationState): Job
Link copied to clipboard
fun <Result> launchUseState(context: CoroutineContext, action: suspend (LocationState) -> Result): Job
Link copied to clipboard
Transforms a Flow of LocationState into a flow of its associated Location
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun takeAndChangeState(action: suspend (LocationState) -> suspend () -> LocationState): LocationState
suspend fun <K : LocationState> takeAndChangeState(remainIfStateNot: KClass<K>, action: suspend (K) -> suspend () -> LocationState): LocationState