Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ademirqueiroga
Last active March 15, 2023 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ademirqueiroga/ca0e08d5df2f120dce320ccb85c613f5 to your computer and use it in GitHub Desktop.
Save ademirqueiroga/ca0e08d5df2f120dce320ccb85c613f5 to your computer and use it in GitHub Desktop.
MediaSession playback state
private var playbackState: Int = -1
set(value) {
if (field != value) {
field = value
invalidatePlaybackState() // We'll cover this function later on.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment