Rating

Rating

sealed interface Rating

Source rating for MediaSession.

See https://developer.android.com/reference/kotlin/androidx/media3/common/Rating

Inheritors

Heart
Thumb
Percentage
Star

Types

NameSummary
Heartdata class Heart(val isHeart: Boolean? = null) : Rating
A rating expressed as "heart" or "no heart".
Percentagedata class Percentage(val percent: Float? = null) : Rating
A rating expressed as a percentage in the range 0..100.
Stardata class Star(val maxStars: Int = 5, val starRating: Float? = null) : Rating
A rating expressed as a fractional number of stars up to maxStars.
Thumbdata class Thumb(val isThumbsUp: Boolean? = null) : Rating
A rating expressed as "thumbs up" or "thumbs down".