MediaSessionViewModel

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val iconViewVisibility: StateFlow<Boolean>
Link copied to clipboard
Link copied to clipboard
val mediaAppInfo: StateFlow<MediaAppInfo?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val playbackState: StateFlow<PlaybackState?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val stateUpdateTime: StateFlow<Long>
Link copied to clipboard
val trackInfo: StateFlow<MediaTrackInfo?>
Link copied to clipboard
val viewVisibility: StateFlow<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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard