systemActions property

Set<MediaAction> systemActions
final

The set of system actions currently enabled. This is for specifying any other MediaActions that are not supported by controls, because they do not represent clickable buttons. For example:

Note that specifying MediaAction.seek in systemActions will enable a seek bar in both the Android notification and the iOS control center, but on Android, it will show only if the media item's duration has been set. MediaAction.seekForward and MediaAction.seekBackward have a special behaviour on iOS in which if you have already enabled the MediaAction.skipToNext and MediaAction.skipToPrevious buttons, these additional actions will allow the user to press and hold the buttons to activate the continuous seeking behaviour.

When enabling the seek bar, also note that some Android devices will not render the seek bar correctly unless your AudioServiceConfig.androidNotificationIcon is a monochrome white icon on a transparent background, and your AudioServiceConfig.notificationColor is a non-transparent color.

Implementation

final Set<MediaAction> systemActions;