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
| Name | Summary |
|---|---|
| Heart | data class Heart(val isHeart: Boolean? = null) : Rating A rating expressed as "heart" or "no heart". |
| Percentage | data class Percentage(val percent: Float? = null) : Rating A rating expressed as a percentage in the range 0..100. |
| Star | data class Star(val maxStars: Int = 5, val starRating: Float? = null) : Rating A rating expressed as a fractional number of stars up to maxStars. |
| Thumb | data class Thumb(val isThumbsUp: Boolean? = null) : Rating A rating expressed as "thumbs up" or "thumbs down". |