PlayerUiController

data class PlayerUiController(playerRepository: PlayerRepository)

Represents a mapping between media UI controls and a PlayerRepository.

This class should generally always be hosted inside a ViewModel to ensure it's tied to a lifecycle that survives configuration changes.

Constructors

Link copied to clipboard
constructor(playerRepository: PlayerRepository)

Functions

Link copied to clipboard
fun pause()
Link copied to clipboard
fun play()
Link copied to clipboard
fun seekBack()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard