Back to Exoplayer

Rating (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/Rating.html

latest3.3 KB
Original Source

Package com.google.android.exoplayer2

Class Rating

  • java.lang.Object

    • com.google.android.exoplayer2.Rating
  • 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.

Nested Class Summary

- 

Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable

Bundleable.Creator<T extends Bundleable>

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static Bundleable.Creator<Rating> | CREATOR | Deprecated.

Object that can restore a Rating from a Bundle. |

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | abstract boolean | isRated() | Deprecated.

Whether the rating exists or not. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

- 

Methods inherited from interface com.google.android.exoplayer2.Bundleable

toBundle

Field Detail

- 

CREATOR

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.

Method Detail

- 

isRated

public abstract boolean isRated()

Deprecated.

Whether the rating exists or not.