MediaConstants


public static class MediaConstants


Summary

Constants

static final @NonNull String

Intent Action sent to an application indicating that the playback screen should be opened if they have one, or the most relevant screen otherwise.

Public fields

static @NonNull MediaConstants

Constants

ACTION_SHOW_MEDIA_PLAYBACK

Added in 1.8.0
public static final @NonNull String ACTION_SHOW_MEDIA_PLAYBACK

Intent Action sent to an application indicating that the playback screen should be opened if they have one, or the most relevant screen otherwise.

Starting in Car API 9, media apps must handle this action in onNewIntent (or intent handling) to route the user to their playback view. For more details, see androidx.car.app.media.model.MediaPlaybackTemplate.

Public fields

INSTANCE

Added in 1.8.0
public static @NonNull MediaConstants INSTANCE