DisplayController

Injectable boundary for refresh dispatch and process-global transient update modes.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun acquireTransientMode(mode: TransientUpdateMode = TransientUpdateMode.ANIMATION_QUALITY): Result<RefreshModeToken>

Acquires a nesting-safe process ownership token for mode.

Link copied to clipboard
abstract suspend fun refresh(view: View, mode: EpdUpdateMode, scope: RefreshScope = RefreshScope.FullView, timeout: Duration = 2.seconds): Result<RefreshReceipt>

Dispatches a mode refresh for scope and waits up to timeout for completion evidence.