Package com.google.android.exoplayer2
Class HeartRating
- java.lang.Object
-
- com.google.android.exoplayer2.Rating
-
- com.google.android.exoplayer2.HeartRating
-
- All Implemented Interfaces:
Bundleable
@Deprecated public final class HeartRating extends Rating
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.
-
-
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<HeartRating>
CREATOR
Deprecated.Object that can restore aHeartRating
from aBundle
.
-
Constructor Summary
Constructors Constructor Description HeartRating()
Deprecated.Creates a unrated instance.HeartRating(boolean isHeart)
Deprecated.Creates a rated instance.
-
Method Summary
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 aBundle
representing the information stored in this object.
-
-
-
Field Detail
-
CREATOR
public static final Bundleable.Creator<HeartRating> CREATOR
Deprecated.Object that can restore aHeartRating
from aBundle
.
-
-
Method Detail
-
isRated
public boolean isRated()
Deprecated.Description copied from class:Rating
Whether the rating exists or not.
-
isHeart
public boolean isHeart()
Deprecated.Returns whether the rating is "heart".
-
toBundle
public Bundle toBundle()
Deprecated.Description copied from interface:Bundleable
Returns aBundle
representing the information stored in this object.
-
-