android-components / mozilla.components.feature.media.ext

Package mozilla.components.feature.media.ext

Functions

Name Summary
getSession fun MediaState.getSession(): Session?
Get the Session that caused this MediaState (if any).
isForCustomTabSession fun MediaState.isForCustomTabSession(): Boolean
Returns true if this MediaState is associated with a Custom Tab Session.
pauseIfPlaying fun MediaState.pauseIfPlaying(): Unit
If this state is MediaState.Playing then pause all playing Media.
playIfPaused fun MediaState.playIfPaused(): Unit
If this state is MediaState.Paused then resume playing all paused Media.