CircuitContext
class CircuitContext constructor(val parent: CircuitContext?, tags: MutableMap<KClass<*>, Any> = mutableMapOf())(source)
A CircuitContext is used in Presenter.Factory
and Ui.Factory
to inform creation of their respective Presenter
and Ui
instances.
Available information includes:
parent – the parent CircuitContext or null if this is the root context.
tag – a tag API to plumb arbitrary metadata through the CircuitContext.
Functions
Link copied to clipboard
Attaches tag to the request using T as a key. Tags can be read from a request using CircuitContext.tag. Use null
to remove any existing tag assigned for T.
Attaches tag to the request using type as a key. Tags can be read from a request using CircuitContext.tag. Use null
to remove any existing tag assigned for type.