BackgroundWorkObserverImpl

Implements BackgroundWorkObserver behavior in the SDAI background work feature layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
private val messageFlow: MutableStateFlow<Pair<String, String>>

Exposes the messageFlow value used by the SDAI background work feature layer.

Link copied to clipboard
private val resultFlow: MutableStateFlow<BackgroundWorkResult>

Exposes the resultFlow value used by the SDAI background work feature layer.

Link copied to clipboard
private val stateFlow: MutableStateFlow<Boolean>

Exposes the stateFlow value used by the SDAI background work feature layer.

Functions

Link copied to clipboard
open override fun dismissResult()

Executes the dismissResult step in the SDAI background work feature layer.

Link copied to clipboard
open override fun hasActiveTasks(): Boolean

Executes the hasActiveTasks step in the SDAI background work feature layer.

Link copied to clipboard
open override fun observeResult(): Flow<BackgroundWorkResult>

Loads SDAI data through observeResult.

Link copied to clipboard
open override fun observeStatus(): Flow<BackgroundWorkStatus>

Loads SDAI data through observeStatus.

Link copied to clipboard
open override fun postCancelSignal()

Executes the postCancelSignal step in the SDAI background work feature layer.

Link copied to clipboard
open override fun postFailedSignal(t: Throwable)

Executes the postFailedSignal step in the SDAI background work feature layer.

Link copied to clipboard
open override fun postStatusMessage(title: String, subTitle: String)

Executes the postStatusMessage step in the SDAI background work feature layer.

Link copied to clipboard
open override fun postSuccessSignal(result: List<AiGenerationResult>)

Executes the postSuccessSignal step in the SDAI background work feature layer.

Link copied to clipboard
open override fun refreshStatus()

Executes the refreshStatus step in the SDAI background work feature layer.