Last active
March 15, 2023 00:43
-
-
Save ademirqueiroga/ca0e08d5df2f120dce320ccb85c613f5 to your computer and use it in GitHub Desktop.
MediaSession playback state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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