![](https://downtips.com/wp-content/uploads/2024/01/360_F_191083470_VtFAYAD2WjBIyvFk80Llr7sJ0hAFhCv3.jpg)
{Solved} Playback State “ACTION_STOP” in Android
Admin
- 0
Playback state stop action solved by down tips:
In this the bitwise OR operator in Kotlin (similar to |
in other languages, including Java). It’s a bit confusing, but in plain English, the above code translates to “This supports ACTION_ PLAYBack state and ACTION_PAUSE “
![](https://downtips.com/wp-content/uploads/2024/01/360_F_191083470_VtFAYAD2WjBIyvFk80Llr7sJ0hAFhCv3.jpg)
DownTips gives you the correct code
setActions(ACTION_PLAY or ACTION_PAUSE or ACTION_STOP or ACTION_PLAY_FROM_MEDIA_ID or ACTION_PLAY_FROM_SEARCH or ACTION_SEEK_TO)
To set the required actions for PlaybackState using the following codes:
setActions(PlaybackStateCompat.ACTION_PLAY)
setActions(PlaybackStateCompat.ACTION_PAUSE)
setActions(PlaybackStateCompat.ACTION_STOP)
setActions(PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID)
setActions(PlaybackStateCompat.ACTION_PLAY_FROM_SEARCH)
setActions(PlaybackStateCompat.ACTION_SEEK_TO)
How To update the PDFView widget in StreamBuilder AndroidStudio?