SharingCommand

enum SharingCommand : Enum<SharingCommand>

A command emitted by SharingStarted implementations to control the sharing coroutine in the shareIn and stateIn operators.

Entries

Link copied to clipboard

Stops sharing, cancelling collection of the upstream flow, and resets the SharedFlow.replayCache to its initial state. The shareIn operator calls MutableSharedFlow.resetReplayCache; the stateIn operator resets the value to its original initialValue.

Link copied to clipboard

Stops sharing, cancelling collection of the upstream flow.

Link copied to clipboard

Starts sharing, launching collection of the upstream flow.

Sources

Link copied to clipboard