Google is committed to advancing racial equity for Black communities. See how.

MediaConstants

public final class MediaConstants
extends Object

java.lang.Object
   ↳ androidx.media.utils.MediaConstants


Media constants for sharing constants between media provider and consumer apps

Summary

Constants

String SESSION_EXTRAS_KEY_ACCOUNT_NAME

Bundle key used for the account name in session extras.

String SESSION_EXTRAS_KEY_ACCOUNT_TYPE

Bundle key used for the account type in session extras.

Inherited methods

Constants

SESSION_EXTRAS_KEY_ACCOUNT_NAME

public static final String SESSION_EXTRAS_KEY_ACCOUNT_NAME

Bundle key used for the account name in session extras.

TYPE: String

Constant Value: "androidx.media.MediaSessionCompat.Extras.KEY_ACCOUNT_NAME"

SESSION_EXTRAS_KEY_ACCOUNT_TYPE

public static final String SESSION_EXTRAS_KEY_ACCOUNT_TYPE

Bundle key used for the account type in session extras. The value would vary across media applications.

TYPE: String

Constant Value: "androidx.media.MediaSessionCompat.Extras.KEY_ACCOUNT_TYPE"