POCardUpdateEventDispatcher

Dispatcher that allows to handle events during card updates.

Properties

Link copied to clipboard
abstract val events: SharedFlow<POCardUpdateEvent>

Allows to subscribe for card update lifecycle events.

Link copied to clipboard

Allows to subscribe for request to decide whether the flow should continue or complete after the failure. Once you've subscribed it's required to call shouldContinue for each request to proceed with the card update flow.

Functions

Link copied to clipboard
abstract suspend fun shouldContinue(response: POCardUpdateShouldContinueResponse)

Notifies whether the flow should continue or complete after the failure. Response must be constructed from request that has been collected by subscribing to shouldContinueRequest.