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 “

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?

Download Android Studio

By Admin