abstract class Rating : Bundleable

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

Constants

const Bundleable.Creator<Rating!>!

This property is deprecated.

Use fromBundle instead.

Public functions

java-static Rating!

Restores a Rating from a Bundle.

abstract Boolean

Whether the rating exists or not.

Inherited functions

From androidx.media3.common.Bundleable
abstract Bundle!

Returns a Bundle representing the information stored in this object.

Constants

CREATOR

@UnstableApi
const val CREATORBundleable.Creator<Rating!>!

Object that can restore a Rating from a Bundle.

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.