RouterViewModelConfig

data class RouterViewModelConfig(val capacity: Capacity = Capacity.Default, val dispatcher: CoroutineDispatcher = Dispatchers.Default, val identity: Contract.Identity = Contract.identity(), val registerToGlobalRouter: Boolean = false)(source)

Configuration options for RouterViewModel setup.

Parameters

capacity

Buffer capacity for the router's internal streams

dispatcher

Coroutine dispatcher for router operations

identity

Optional identity for the router instance

Constructors

Link copied to clipboard
constructor(capacity: Capacity = Capacity.Default, dispatcher: CoroutineDispatcher = Dispatchers.Default, identity: Contract.Identity = Contract.identity(), registerToGlobalRouter: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Joins the global router so this router exchanges effects and queries with other registered routers.