Package com.google.android.exoplayer2
Class PercentageRating
- java.lang.Object
-
- com.google.android.exoplayer2.Rating
-
- com.google.android.exoplayer2.PercentageRating
-
- All Implemented Interfaces:
Bundleable
@Deprecated public final class PercentageRating 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 a percentage.
-
-
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<PercentageRating>CREATORDeprecated.Object that can restore aPercentageRatingfrom aBundle.
-
Constructor Summary
Constructors Constructor Description PercentageRating()Deprecated.Creates a unrated instance.PercentageRating(float percent)Deprecated.Creates a rated instance with the given percentage.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)Deprecated.floatgetPercent()Deprecated.Returns the percent value of this rating.inthashCode()Deprecated.booleanisRated()Deprecated.Whether the rating exists or not.BundletoBundle()Deprecated.Returns aBundlerepresenting the information stored in this object.
-
-
-
Field Detail
-
CREATOR
public static final Bundleable.Creator<PercentageRating> CREATOR
Deprecated.Object that can restore aPercentageRatingfrom aBundle.
-
-
Constructor Detail
-
PercentageRating
public PercentageRating()
Deprecated.Creates a unrated instance.
-
PercentageRating
public PercentageRating(@FloatRange(from=0.0,to=100.0) float percent)Deprecated.Creates a rated instance with the given percentage.- Parameters:
percent- The percentage value of the rating.
-
-
Method Detail
-
isRated
public boolean isRated()
Deprecated.Description copied from class:RatingWhether the rating exists or not.
-
getPercent
public float getPercent()
Deprecated.Returns the percent value of this rating. Will be within the range[0f, 100f], orRating.RATING_UNSETif unrated.
-
toBundle
public Bundle toBundle()
Deprecated.Description copied from interface:BundleableReturns aBundlerepresenting the information stored in this object.
-
-