docs/doc/reference/com/google/android/exoplayer2/Rating.html
Package com.google.android.exoplayer2
All Implemented Interfaces:BundleableDirect Known Subclasses:HeartRating, PercentageRating, StarRating, ThumbRating
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public abstract classRatingextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Bundleable](Bundleable.html "interface in com.google.android.exoplayer2")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
A rating for media content. The style of a rating can be one of HeartRating, PercentageRating, StarRating, or ThumbRating.
-
Bundleable.Creator<T extends Bundleable>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static Bundleable.Creator<Rating> | CREATOR |
Deprecated.
Object that can restore a Rating from a Bundle.
|
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| abstract boolean | isRated() |
Deprecated.
Whether the rating exists or not. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
toBundle
-
public static final[Bundleable.Creator](Bundleable.Creator.html "interface in com.google.android.exoplayer2")<[Rating](Rating.html "class in com.google.android.exoplayer2")> CREATOR
Deprecated.
Object that can restore a Rating from a Bundle.
-
public abstract boolean isRated()
Deprecated.
Whether the rating exists or not.