Stay organized with collections
Save and categorize content based on your preferences.
public
final
class
CarMediaIntents
extends Object
java.lang.Object
|
↳ |
android.car.media.CarMediaIntents
|
Defines media related intents (and their extras) for the car.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public static final String ACTION_MEDIA_TEMPLATE
Activity Action: Provide media playing through a media template app.
Input: these optional extras
EXTRA_MEDIA_COMPONENT
EXTRA_SEARCH_QUERY
Output: nothing.
If no extra is specified, the current media source is opened.
Constant Value:
"android.car.intent.action.MEDIA_TEMPLATE"
public static final String EXTRA_MEDIA_COMPONENT
Used as a string extra field with ACTION_MEDIA_TEMPLATE
to specify the
MediaBrowserService that user wants to start the media on.
Constant Value:
"android.car.intent.extra.MEDIA_COMPONENT"
public static final String EXTRA_SEARCH_QUERY
Used as a string extra field with ACTION_MEDIA_TEMPLATE
to specify the search query
to send either to the current MediaBrowserService or the one specified
with EXTRA_MEDIA_COMPONENT
.
Constant Value:
"android.car.media.extra.SEARCH_QUERY"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-17 UTC.
[null,null,["Last updated 2025-02-17 UTC."],[],[],null,["# CarMediaIntents\n\nSummary: [Constants](#constants) \\| [Inherited Methods](#inhmethods) \n\nCarMediaIntents\n===============\n\n\n`\npublic\n\nfinal\n\nclass\nCarMediaIntents\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|-----------------------------------|\n| java.lang.Object ||\n| ↳ | android.car.media.CarMediaIntents |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDefines media related intents (and their extras) for the car.\n\nSummary\n-------\n\n| ### Constants ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `String` | [ACTION_MEDIA_TEMPLATE](/reference/android/car/media/CarMediaIntents#ACTION_MEDIA_TEMPLATE) Activity Action: Provide media playing through a media template app. |\n| `String` | [EXTRA_MEDIA_COMPONENT](/reference/android/car/media/CarMediaIntents#EXTRA_MEDIA_COMPONENT) Used as a string extra field with [ACTION_MEDIA_TEMPLATE](/reference/android/car/media/CarMediaIntents#ACTION_MEDIA_TEMPLATE) to specify the MediaBrowserService that user wants to start the media on. |\n| `String` | [EXTRA_SEARCH_QUERY](/reference/android/car/media/CarMediaIntents#EXTRA_SEARCH_QUERY) Used as a string extra field with [ACTION_MEDIA_TEMPLATE](/reference/android/car/media/CarMediaIntents#ACTION_MEDIA_TEMPLATE) to specify the search query to send either to the current MediaBrowserService or the one specified with [EXTRA_MEDIA_COMPONENT](/reference/android/car/media/CarMediaIntents#EXTRA_MEDIA_COMPONENT). |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nConstants\n---------\n\n### ACTION_MEDIA_TEMPLATE\n\n```\npublic static final String ACTION_MEDIA_TEMPLATE\n```\n\nActivity Action: Provide media playing through a media template app.\n\nInput: these optional extras\n- [EXTRA_MEDIA_COMPONENT](/reference/android/car/media/CarMediaIntents#EXTRA_MEDIA_COMPONENT)\n- [EXTRA_SEARCH_QUERY](/reference/android/car/media/CarMediaIntents#EXTRA_SEARCH_QUERY)\n- Output: nothing.\nIf no extra is specified, the current media source is opened.\n- Constant Value: \"android.car.intent.action.MEDIA_TEMPLATE\"\n\n### EXTRA_MEDIA_COMPONENT\n\n```\npublic static final String EXTRA_MEDIA_COMPONENT\n```\n\nUsed as a string extra field with [ACTION_MEDIA_TEMPLATE](/reference/android/car/media/CarMediaIntents#ACTION_MEDIA_TEMPLATE) to specify the\nMediaBrowserService that user wants to start the media on.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"android.car.intent.extra.MEDIA_COMPONENT\"\n\n\n### EXTRA_SEARCH_QUERY\n\n```\npublic static final String EXTRA_SEARCH_QUERY\n```\n\nUsed as a string extra field with [ACTION_MEDIA_TEMPLATE](/reference/android/car/media/CarMediaIntents#ACTION_MEDIA_TEMPLATE) to specify the search query\nto send either to the current MediaBrowserService or the one specified\nwith [EXTRA_MEDIA_COMPONENT](/reference/android/car/media/CarMediaIntents#EXTRA_MEDIA_COMPONENT).\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"android.car.media.extra.SEARCH_QUERY\""]]