NewDownloadState

Tracks whether there is a completed download that the user has not yet seen, so the browser menu can surface a "new download" indicator until the user opens the downloads screen.

The state is owned entirely by the downloads feature (persisted in downloads-impl), so no consumer has to reach back into :app to read or mutate it.

Properties

Link copied to clipboard
abstract val hasNewDownloadFlow: Flow<Boolean>

Reactive flow indicating whether there is a new download that has not been viewed by the user yet.

Functions

Link copied to clipboard
abstract fun hasNewDownload(): Boolean

Indicates whether there is a new download that has not been viewed by the user yet.

Link copied to clipboard
abstract fun onDownloadComplete()

Indicates that a new download has completed, and the user should be notified about it until they view the downloads screen.