Rating

sealed interface Rating

Source rating for MediaSession.

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

Inheritors

Types

Link copied to clipboard
data class Heart(val isHeart: Boolean? = null) : Rating

A rating expressed as "heart" or "no heart".

Link copied to clipboard
data class Percentage(val percent: Float? = null) : Rating

A rating expressed as a percentage in the range 0..100.

Link copied to clipboard
data class Star(val maxStars: Int = 5, val starRating: Float? = null) : Rating

A rating expressed as a fractional number of stars up to maxStars.

Link copied to clipboard
data class Thumb(val isThumbsUp: Boolean? = null) : Rating

A rating expressed as "thumbs up" or "thumbs down".