abstract class Rating

Known direct subclasses
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, , StarRating, or ThumbRating.

Summary

Public functions

java-static Rating!

Restores a Rating from a Bundle.

abstract Boolean

Whether the rating exists or not.

abstract Bundle!

Returns a Bundle representing the information stored in this rating.

Public functions

fromBundle

@UnstableApi
java-static fun fromBundle(bundle: Bundle!): Rating!

Restores a Rating from a Bundle.

isRated

abstract fun isRated(): Boolean

Whether the rating exists or not.

toBundle

@UnstableApi
abstract fun toBundle(): Bundle!

Returns a Bundle representing the information stored in this rating.