# CarMediaIntents

Summary:[Constants](https://developer.android.com/reference/android/car/media/CarMediaIntents#constants)\|[Inherited Methods](https://developer.android.com/reference/android/car/media/CarMediaIntents#inhmethods)  

# CarMediaIntents

`
public

final

class
CarMediaIntents
`  
`

extends Object


``


`

|---|-----------------------------------|
| java.lang.Object                     ||
| ↳ | android.car.media.CarMediaIntents |

<br />

*** ** * ** ***

Defines media related intents (and their extras) for the car.

## Summary

|                                                                                                                                                                                                                                                     ### Constants                                                                                                                                                                                                                                                      ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `String` | [ACTION_MEDIA_TEMPLATE](https://developer.android.com/reference/android/car/media/CarMediaIntents#ACTION_MEDIA_TEMPLATE) Activity Action: Provide media playing through a media template app.                                                                                                                                                                                                                                                                                                                |
| `String` | [EXTRA_MEDIA_COMPONENT](https://developer.android.com/reference/android/car/media/CarMediaIntents#EXTRA_MEDIA_COMPONENT) Used as a string extra field with[ACTION_MEDIA_TEMPLATE](https://developer.android.com/reference/android/car/media/CarMediaIntents#ACTION_MEDIA_TEMPLATE)to specify the MediaBrowserService that user wants to start the media on.                                                                                                                                                  |
| `String` | [EXTRA_SEARCH_QUERY](https://developer.android.com/reference/android/car/media/CarMediaIntents#EXTRA_SEARCH_QUERY) Used as a string extra field with[ACTION_MEDIA_TEMPLATE](https://developer.android.com/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](https://developer.android.com/reference/android/car/media/CarMediaIntents#EXTRA_MEDIA_COMPONENT). |

| ### 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

### ACTION_MEDIA_TEMPLATE

```
public static final String ACTION_MEDIA_TEMPLATE
```

Activity Action: Provide media playing through a media template app.

Input: these optional extras
- [EXTRA_MEDIA_COMPONENT](https://developer.android.com/reference/android/car/media/CarMediaIntents#EXTRA_MEDIA_COMPONENT)
- [EXTRA_SEARCH_QUERY](https://developer.android.com/reference/android/car/media/CarMediaIntents#EXTRA_SEARCH_QUERY)
- Output: nothing.
If no extra is specified, the current media source is opened.
- Constant Value: "android.car.intent.action.MEDIA_TEMPLATE"

### EXTRA_MEDIA_COMPONENT

```
public static final String EXTRA_MEDIA_COMPONENT
```

Used as a string extra field with[ACTION_MEDIA_TEMPLATE](https://developer.android.com/reference/android/car/media/CarMediaIntents#ACTION_MEDIA_TEMPLATE)to specify the MediaBrowserService that user wants to start the media on.

<br />

Constant Value: "android.car.intent.extra.MEDIA_COMPONENT"  

### EXTRA_SEARCH_QUERY

```
public static final String EXTRA_SEARCH_QUERY
```

Used as a string extra field with[ACTION_MEDIA_TEMPLATE](https://developer.android.com/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](https://developer.android.com/reference/android/car/media/CarMediaIntents#EXTRA_MEDIA_COMPONENT).

<br />

Constant Value: "android.car.media.extra.SEARCH_QUERY"