GetScreenUseCase

Fetches a screen's payload by id, without installing it — backs both GetScreen (which forwards the ScreenModel downstream, letting the caller decide when/how to apply it via ChangeScreenState) and RefreshScreen (which applies it immediately). Reachable via get<GetScreenUseCase>().

Constructors

Link copied to clipboard
constructor(repository: MosaicRepository)

Types

Link copied to clipboard
data class Params(val screenId: String, val headers: Map<String, String>?, val body: Any?, val httpMethod: HttpMethod, val timeoutMillis: Long? = null)

Functions

Link copied to clipboard
open suspend override fun execute(params: GetScreenUseCase.Params): Result<ScreenModel>
Link copied to clipboard
suspend operator fun invoke(params: GetScreenUseCase.Params): Result<ScreenModel>