docs/doc/reference/com/google/android/exoplayer2/HeartRating.html
Package com.google.android.exoplayer2
All Implemented Interfaces:Bundleable
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classHeartRatingextends[Rating](Rating.html "class 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 expressed as "heart" or "no heart". It can be used to indicate whether the content is a favorite.
-
Bundleable.Creator<T extends Bundleable>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static Bundleable.Creator<HeartRating> | CREATOR |
Deprecated.
Object that can restore a HeartRating from a Bundle.
|
Constructors | Constructor | Description |
| --- | --- |
| HeartRating() |
Deprecated.
Creates a unrated instance.
|
| HeartRating(boolean isHeart) |
Deprecated.
Creates a rated instance. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | equals(Object obj) |
Deprecated.
|
| int | hashCode() |
Deprecated.
|
| boolean | isHeart() |
Deprecated.
Returns whether the rating is "heart".
|
| boolean | isRated() |
Deprecated.
Whether the rating exists or not.
|
| Bundle | toBundle() |
Deprecated.
Returns a Bundle representing the information stored in this object.
|
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public static final[Bundleable.Creator](Bundleable.Creator.html "interface in com.google.android.exoplayer2")<[HeartRating](HeartRating.html "class in com.google.android.exoplayer2")> CREATOR
Deprecated.
Object that can restore a HeartRating from a Bundle.
-
public HeartRating()
Deprecated.
Creates a unrated instance.
-
public HeartRating(boolean isHeart)
Deprecated.
Creates a rated instance.
Parameters:isHeart - true for "heart", false for "no heart".
-
public boolean isRated()
Deprecated.
Description copied from class: Rating
Whether the rating exists or not.
Specified by:isRated in class Rating
-
public boolean isHeart()
Deprecated.
Returns whether the rating is "heart".
-
public int hashCode()
Deprecated.
Overrides:hashCode in class Object
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Deprecated.
Overrides:equals in class Object
-
public[Bundle](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")toBundle()
Deprecated.
Description copied from interface: Bundleable
Returns a Bundle representing the information stored in this object.