Rating
public abstract class Rating
HeartRating |
A rating expressed as "heart" or "no heart". |
PercentageRating |
A rating expressed as a percentage. |
StarRating |
A rating expressed as a fractional number of stars. |
ThumbRating |
A rating expressed as "thumbs up" or "thumbs down". |
A rating for media content. The style of a rating can be one of HeartRating, PercentageRating, StarRating, or ThumbRating.
Summary
Public methods |
|
|---|---|
static Rating |
@UnstableApiRestores a |
abstract boolean |
isRated()Whether the rating exists or not. |
abstract Bundle |
Returns a |
Public methods
fromBundle
@UnstableApi
public static Rating fromBundle(Bundle bundle)
Restores a Rating from a Bundle.
toBundle
@UnstableApi
public abstract Bundle toBundle()
Returns a Bundle representing the information stored in this rating.