MediaSessionViewModel

class MediaSessionViewModel(skipToNextMedia: SkipToNextMediaUseCase, skipToPreviousMedia: SkipToPreviousMediaUseCase, playMedia: PlayMediaSessionUseCase, pauseMedia: PauseMediaSessionUseCase, openMediaApp: OpenMediaAppUseCase, sendCustomAction: SendCustomActionUseCase, changeAudioStageViewState: ChangeAudioStageViewStateUseCase, observePlaybackState: ObservePlaybackStateUseCase, observeAudioStageState: ObserveAudioStageStateUseCase, observeTrackInfo: ObserveTrackInfoUseCase, analyticsSender: AnalyticsSender, observeMediaAppInfo: ObserveMediaAppInfoUseCase, sendMediaEvent: SendMediaEventUseCase, mediaAnalytics: MediaAnalytics, availabilityPolicy: ViewAvailabilityPolicy) : ViewModel

Constructors

Link copied to clipboard
constructor(skipToNextMedia: SkipToNextMediaUseCase, skipToPreviousMedia: SkipToPreviousMediaUseCase, playMedia: PlayMediaSessionUseCase, pauseMedia: PauseMediaSessionUseCase, openMediaApp: OpenMediaAppUseCase, sendCustomAction: SendCustomActionUseCase, changeAudioStageViewState: ChangeAudioStageViewStateUseCase, observePlaybackState: ObservePlaybackStateUseCase, observeAudioStageState: ObserveAudioStageStateUseCase, observeTrackInfo: ObserveTrackInfoUseCase, analyticsSender: AnalyticsSender, observeMediaAppInfo: ObserveMediaAppInfoUseCase, sendMediaEvent: SendMediaEventUseCase, mediaAnalytics: MediaAnalytics, availabilityPolicy: ViewAvailabilityPolicy)

Properties

Link copied to clipboard
Link copied to clipboard
val iconViewVisibility: MutableStateFlow<Boolean>
Link copied to clipboard
val isPlaying: StateFlow<Boolean>
Link copied to clipboard
val largeViewVisibility: MutableStateFlow<Boolean>
Link copied to clipboard
val mediaAppInfo: StateFlow<MediaAppInfo?>
Link copied to clipboard
val nextButtonAvailability: MutableStateFlow<Boolean>
Link copied to clipboard
val nextButtonVisibility: MutableStateFlow<Boolean>
Link copied to clipboard
val playbackState: StateFlow<PlaybackState?>
Link copied to clipboard
val playPauseVisibility: MutableStateFlow<Boolean>
Link copied to clipboard
val prevButtonAvailability: MutableStateFlow<Boolean>
Link copied to clipboard
val prevButtonVisibility: MutableStateFlow<Boolean>
Link copied to clipboard
val seekBarAvailability: MutableStateFlow<Boolean>
Link copied to clipboard
Link copied to clipboard
val viewVisibility: MutableStateFlow<Boolean>

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onViewMetricsChange(metrics: ViewMetrics)