MediaScanner

interface MediaScanner

Properties

Link copied to clipboard
abstract val localScanStateFlow: StateFlow<LocalMediaScanState>

Functions

Link copied to clipboard
abstract fun recheckPermissions(): Boolean

Changes the scanner's state depending on the availability of permissions. Must be called when granting permissions.

Link copied to clipboard
abstract suspend fun scanBackend(userId: Long): Deferred<Unit>

Starts the backend scanning process for user with userId.

Link copied to clipboard
abstract suspend fun scanLocal(): Deferred<Unit>

Starts the local scanning process.