# RatingCompat

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-media-compat:28.0.0-alpha1  
Summary:[Constants](https://developer.android.com/reference/android/support/v4-media/RatingCompat#constants)\|[Inherited Constants](https://developer.android.com/reference/android/support/v4-media/RatingCompat#inhconstants)\|[Fields](https://developer.android.com/reference/android/support/v4-media/RatingCompat#lfields)\|[Methods](https://developer.android.com/reference/android/support/v4-media/RatingCompat#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v4-media/RatingCompat#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v4-media/RatingCompat#)  

# RatingCompat

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public

final

class
RatingCompat
`  
`

extends Object


``


implements

`[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)`


`

|---|---------------------------------------|
| java.lang.Object                         ||
| ↳ | android.support.v4.media.RatingCompat |

<br />

*** ** * ** ***

A class to encapsulate rating information used as content metadata. A rating is defined by its rating style (see[RATING_HEART](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_HEART),[RATING_THUMB_UP_DOWN](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_THUMB_UP_DOWN),[RATING_3_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_3_STARS),[RATING_4_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_4_STARS),[RATING_5_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_5_STARS)or[RATING_PERCENTAGE](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_PERCENTAGE)) and the actual rating value (which may be defined as "unrated"), both of which are defined when the rating instance is constructed through one of the factory methods.

## Summary

|                                                                                      ### Constants                                                                                      ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [RATING_3_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_3_STARS) A rating style with 0 to 3 stars.                                 |
| `int` | [RATING_4_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_4_STARS) A rating style with 0 to 4 stars.                                 |
| `int` | [RATING_5_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_5_STARS) A rating style with 0 to 5 stars.                                 |
| `int` | [RATING_HEART](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_HEART) A rating style with a single degree of rating, "heart" vs "no heart". |
| `int` | [RATING_NONE](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_NONE) Indicates a rating style is not supported.                              |
| `int` | [RATING_PERCENTAGE](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_PERCENTAGE) A rating style expressed as a percentage.                   |
| `int` | [RATING_THUMB_UP_DOWN](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_THUMB_UP_DOWN) A rating style for "thumb up" vs "thumb down".        |

|                                                                                                                                                                       ### Inherited constants                                                                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4-media/RatingCompat#)From interface` android.os.Parcelable ` |-------|----------------------------------------| | `int` | `CONTENTS_FILE_DESCRIPTOR` <br />      | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` <br /> | |

|                                                                                                                                                        ### Fields                                                                                                                                                        ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| ` public static final `[Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html)`<`[RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat)`>` | [CREATOR](https://developer.android.com/reference/android/support/v4/media/RatingCompat#CREATOR) <br /> |

|                                                                                                                                                                                ### Public methods                                                                                                                                                                                ||
|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                                  | ` `[describeContents](https://developer.android.com/reference/android/support/v4/media/RatingCompat#describeContents())`() `                                                                                                                                            |
| ` static `[RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | ` `[fromRating](https://developer.android.com/reference/android/support/v4/media/RatingCompat#fromRating(java.lang.Object))`(Object ratingObj) ` Creates an instance from a framework[Rating](https://developer.android.com/reference/android/media/Rating.html)object. |
| ` float`                                                                                                | ` `[getPercentRating](https://developer.android.com/reference/android/support/v4/media/RatingCompat#getPercentRating())`() ` Return the percentage-based rating value.                                                                                                  |
| ` Object`                                                                                               | ` `[getRating](https://developer.android.com/reference/android/support/v4/media/RatingCompat#getRating())`() ` Gets the underlying framework[Rating](https://developer.android.com/reference/android/media/Rating.html)object.                                          |
| ` int`                                                                                                  | ` `[getRatingStyle](https://developer.android.com/reference/android/support/v4/media/RatingCompat#getRatingStyle())`() ` Return the rating style.                                                                                                                       |
| ` float`                                                                                                | ` `[getStarRating](https://developer.android.com/reference/android/support/v4/media/RatingCompat#getStarRating())`() ` Return the star-based rating value.                                                                                                              |
| ` boolean`                                                                                              | ` `[hasHeart](https://developer.android.com/reference/android/support/v4/media/RatingCompat#hasHeart())`() ` Return whether the rating is "heart selected".                                                                                                             |
| ` boolean`                                                                                              | ` `[isRated](https://developer.android.com/reference/android/support/v4/media/RatingCompat#isRated())`() ` Return whether there is a rating value available.                                                                                                            |
| ` boolean`                                                                                              | ` `[isThumbUp](https://developer.android.com/reference/android/support/v4/media/RatingCompat#isThumbUp())`() ` Return whether the rating is "thumb up".                                                                                                                 |
| ` static `[RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | ` `[newHeartRating](https://developer.android.com/reference/android/support/v4/media/RatingCompat#newHeartRating(boolean))`(boolean hasHeart) ` Return a Rating instance with a heart-based rating.                                                                     |
| ` static `[RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | ` `[newPercentageRating](https://developer.android.com/reference/android/support/v4/media/RatingCompat#newPercentageRating(float))`(float percent) ` Return a Rating instance with a percentage-based rating.                                                           |
| ` static `[RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | ` `[newStarRating](https://developer.android.com/reference/android/support/v4/media/RatingCompat#newStarRating(int, float))`(int starRatingStyle, float starRating) ` Return a Rating instance with a star-based rating.                                                |
| ` static `[RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | ` `[newThumbRating](https://developer.android.com/reference/android/support/v4/media/RatingCompat#newThumbRating(boolean))`(boolean thumbIsUp) ` Return a Rating instance with a thumb-based rating.                                                                    |
| ` static `[RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | ` `[newUnratedRating](https://developer.android.com/reference/android/support/v4/media/RatingCompat#newUnratedRating(int))`(int ratingStyle) ` Return a Rating instance with no rating.                                                                                 |
| ` String`                                                                                               | ` `[toString](https://developer.android.com/reference/android/support/v4/media/RatingCompat#toString())`() `                                                                                                                                                            |
| ` void`                                                                                                 | ` `[writeToParcel](https://developer.android.com/reference/android/support/v4/media/RatingCompat#writeToParcel(android.os.Parcel, int))`(`[Parcel](https://developer.android.com/reference/android/os/Parcel.html)` dest, int flags) `                                  |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4-media/RatingCompat#)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() `                    | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4-media/RatingCompat#)From interface` `[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html)` ` |------------------|--------------------------------------------------------------------------------------------------------------| | ` abstract int`  | ` describeContents() `                                                                                       | | ` abstract void` | ` writeToParcel(`[Parcel](https://developer.android.com/reference/android/os/Parcel.html)` arg0, int arg1) ` | ||

## Constants

### RATING_3_STARS

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int RATING_3_STARS
```

A rating style with 0 to 3 stars.

<br />

Constant Value: 3 (0x00000003)  

### RATING_4_STARS

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int RATING_4_STARS
```

A rating style with 0 to 4 stars.

<br />

Constant Value: 4 (0x00000004)  

### RATING_5_STARS

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int RATING_5_STARS
```

A rating style with 0 to 5 stars.

<br />

Constant Value: 5 (0x00000005)  

### RATING_HEART

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int RATING_HEART
```

A rating style with a single degree of rating, "heart" vs "no heart". Can be used to indicate the content referred to is a favorite (or not).

<br />

Constant Value: 1 (0x00000001)  

### RATING_NONE

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int RATING_NONE
```

Indicates a rating style is not supported. A Rating will never have this type, but can be used by other classes to indicate they do not support Rating.

<br />

Constant Value: 0 (0x00000000)  

### RATING_PERCENTAGE

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int RATING_PERCENTAGE
```

A rating style expressed as a percentage.

<br />

Constant Value: 6 (0x00000006)  

### RATING_THUMB_UP_DOWN

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int RATING_THUMB_UP_DOWN
```

A rating style for "thumb up" vs "thumb down".

<br />

Constant Value: 2 (0x00000002)

## Fields

### CREATOR

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Creator<RatingCompat> CREATOR
```

<br />

<br />

## Public methods

### describeContents

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int describeContents ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### fromRating

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
RatingCompat fromRating (Object ratingObj)
```

Creates an instance from a framework[Rating](https://developer.android.com/reference/android/media/Rating.html)object.

This method is only supported on API 19+.

<br />

<br />

|                                                             Parameters                                                             ||
|-------------|-----------------------------------------------------------------------------------------------------------------------|
| `ratingObj` | `Object`: A[Rating](https://developer.android.com/reference/android/media/Rating.html)object, or null if none. <br /> |

|                                                                                                                 Returns                                                                                                                  ||
|-----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| [RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | An equivalent[RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat)object, or null if none. <br /> |

### getPercentRating

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getPercentRating ()
```

Return the percentage-based rating value.

<br />

|                                                                    Returns                                                                     ||
|---------|---------------------------------------------------------------------------------------------------------------------------------------|
| `float` | a rating value greater or equal to 0.0f, or a negative value if the rating style is not percentage-based, or if it is unrated. <br /> |

### getRating

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Object getRating ()
```

Gets the underlying framework[Rating](https://developer.android.com/reference/android/media/Rating.html)object.

This method is only supported on API 19+.

<br />

<br />

|                                                              Returns                                                              ||
|----------|-------------------------------------------------------------------------------------------------------------------------|
| `Object` | An equivalent[Rating](https://developer.android.com/reference/android/media/Rating.html)object, or null if none. <br /> |

### getRatingStyle

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getRatingStyle ()
```

Return the rating style.

<br />

|                                                                                                                                                                                                                                                                                                                                                             Returns                                                                                                                                                                                                                                                                                                                                                             ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | one of[RATING_HEART](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_HEART),[RATING_THUMB_UP_DOWN](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_THUMB_UP_DOWN),[RATING_3_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_3_STARS),[RATING_4_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_4_STARS),[RATING_5_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_5_STARS), or[RATING_PERCENTAGE](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_PERCENTAGE). <br /> |

### getStarRating

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
float getStarRating ()
```

Return the star-based rating value.

<br />

|                                                                 Returns                                                                  ||
|---------|---------------------------------------------------------------------------------------------------------------------------------|
| `float` | a rating value greater or equal to 0.0f, or a negative value if the rating style is not star-based, or if it is unrated. <br /> |

### hasHeart

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean hasHeart ()
```

Return whether the rating is "heart selected".

<br />

|                                                                                                                            Returns                                                                                                                            ||
|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | true if the rating is "heart selected", false if the rating is "heart unselected", if the rating style is not[RATING_HEART](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_HEART)or if it is unrated. <br /> |

### isRated

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isRated ()
```

Return whether there is a rating value available.

<br />

|                                                                                         Returns                                                                                          ||
|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | true if the instance was not created with[newUnratedRating(int)](https://developer.android.com/reference/android/support/v4/media/RatingCompat#newUnratedRating(int)). <br /> |

### isThumbUp

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isThumbUp ()
```

Return whether the rating is "thumb up".

<br />

|                                                                                                                              Returns                                                                                                                              ||
|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | true if the rating is "thumb up", false if the rating is "thumb down", if the rating style is not[RATING_THUMB_UP_DOWN](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_THUMB_UP_DOWN)or if it is unrated. <br /> |

### newHeartRating

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
RatingCompat newHeartRating (boolean hasHeart)
```

Return a Rating instance with a heart-based rating. Create and return a new Rating instance with a rating style of[RATING_HEART](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_HEART), and a heart-based rating.

<br />

|                                           Parameters                                            ||
|------------|-------------------------------------------------------------------------------------|
| `hasHeart` | `boolean`: true for a "heart selected" rating, false for "heart unselected". <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------|-------------------------------|
| [RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | a new Rating instance. <br /> |

### newPercentageRating

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
RatingCompat newPercentageRating (float percent)
```

Return a Rating instance with a percentage-based rating. Create and return a new Rating instance with a[RATING_PERCENTAGE](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_PERCENTAGE)rating style, and a rating of the given percentage.

<br />

|                     Parameters                     ||
|-----------|-----------------------------------------|
| `percent` | `float`: the value of the rating <br /> |

|                                                                                  Returns                                                                                   ||
|-----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| [RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | null if the rating is out of range, a new Rating instance otherwise. <br /> |

### newStarRating

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
RatingCompat newStarRating (int starRatingStyle,
                float starRating)
```

Return a Rating instance with a star-based rating. Create and return a new Rating instance with one of the star-base rating styles and the given integer or fractional number of stars. Non integer values can for instance be used to represent an average rating value, which might not be an integer number of stars.

<br />

|                                                                                                                                                                                      Parameters                                                                                                                                                                                      ||
|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `starRatingStyle` | `int`: one of[RATING_3_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_3_STARS),[RATING_4_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_4_STARS),[RATING_5_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_5_STARS). <br /> |
| `starRating`      | `float`: a number ranging from 0.0f to 3.0f, 4.0f or 5.0f according to the rating style. <br />                                                                                                                                                                                                                                                                   |

|                                                                                                  Returns                                                                                                   ||
|-----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|
| [RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | null if the rating style is invalid, or the rating is out of range, a new Rating instance otherwise. <br /> |

### newThumbRating

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
RatingCompat newThumbRating (boolean thumbIsUp)
```

Return a Rating instance with a thumb-based rating. Create and return a new Rating instance with a[RATING_THUMB_UP_DOWN](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_THUMB_UP_DOWN)rating style, and a "thumb up" or "thumb down" rating.

<br />

|                                      Parameters                                      ||
|-------------|-------------------------------------------------------------------------|
| `thumbIsUp` | `boolean`: true for a "thumb up" rating, false for "thumb down". <br /> |

|                                                           Returns                                                            ||
|-----------------------------------------------------------------------------------------------|-------------------------------|
| [RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | a new Rating instance. <br /> |

### newUnratedRating

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
RatingCompat newUnratedRating (int ratingStyle)
```

Return a Rating instance with no rating. Create and return a new Rating instance with no rating known for the given rating style.

<br />

|                                                                                                                                                                                                                                                                                                                                                                   Parameters                                                                                                                                                                                                                                                                                                                                                                   ||
|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `ratingStyle` | `int`: one of[RATING_HEART](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_HEART),[RATING_THUMB_UP_DOWN](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_THUMB_UP_DOWN),[RATING_3_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_3_STARS),[RATING_4_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_4_STARS),[RATING_5_STARS](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_5_STARS), or[RATING_PERCENTAGE](https://developer.android.com/reference/android/support/v4/media/RatingCompat#RATING_PERCENTAGE). <br /> |

|                                                                                      Returns                                                                                      ||
|-----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| [RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat) | null if an invalid rating style is passed, a new Rating instance otherwise. <br /> |

### toString

```
String toString ()
```

<br />

<br />

|     Returns      ||
|----------|--------|
| `String` | <br /> |

### writeToParcel

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void writeToParcel (Parcel dest,
                int flags)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `dest`  | `Parcel` <br /> |
| `flags` | `int` <br />    |

-

  ## Classes

  - [AudioAttributesCompat](https://developer.android.com/reference/android/support/v4/media/AudioAttributesCompat)
  - [AudioAttributesCompat.Builder](https://developer.android.com/reference/android/support/v4/media/AudioAttributesCompat.Builder)
  - [MediaBrowserCompat](https://developer.android.com/reference/android/support/v4/media/MediaBrowserCompat)
  - [MediaBrowserCompat.ConnectionCallback](https://developer.android.com/reference/android/support/v4/media/MediaBrowserCompat.ConnectionCallback)
  - [MediaBrowserCompat.CustomActionCallback](https://developer.android.com/reference/android/support/v4/media/MediaBrowserCompat.CustomActionCallback)
  - [MediaBrowserCompat.ItemCallback](https://developer.android.com/reference/android/support/v4/media/MediaBrowserCompat.ItemCallback)
  - [MediaBrowserCompat.MediaItem](https://developer.android.com/reference/android/support/v4/media/MediaBrowserCompat.MediaItem)
  - [MediaBrowserCompat.SearchCallback](https://developer.android.com/reference/android/support/v4/media/MediaBrowserCompat.SearchCallback)
  - [MediaBrowserCompat.SubscriptionCallback](https://developer.android.com/reference/android/support/v4/media/MediaBrowserCompat.SubscriptionCallback)
  - [MediaBrowserServiceCompat](https://developer.android.com/reference/android/support/v4/media/MediaBrowserServiceCompat)
  - [MediaBrowserServiceCompat.BrowserRoot](https://developer.android.com/reference/android/support/v4/media/MediaBrowserServiceCompat.BrowserRoot)
  - [MediaBrowserServiceCompat.Result](https://developer.android.com/reference/android/support/v4/media/MediaBrowserServiceCompat.Result)
  - [MediaDescriptionCompat](https://developer.android.com/reference/android/support/v4/media/MediaDescriptionCompat)
  - [MediaDescriptionCompat.Builder](https://developer.android.com/reference/android/support/v4/media/MediaDescriptionCompat.Builder)
  - [MediaMetadataCompat](https://developer.android.com/reference/android/support/v4/media/MediaMetadataCompat)
  - [MediaMetadataCompat.Builder](https://developer.android.com/reference/android/support/v4/media/MediaMetadataCompat.Builder)
  - [RatingCompat](https://developer.android.com/reference/android/support/v4/media/RatingCompat)
  - [VolumeProviderCompat](https://developer.android.com/reference/android/support/v4/media/VolumeProviderCompat)
  - [VolumeProviderCompat.Callback](https://developer.android.com/reference/android/support/v4/media/VolumeProviderCompat.Callback)