class ThumbRating : Rating


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

Summary

Public constructors

Creates a unrated instance.

ThumbRating(isThumbsUp: Boolean)

Creates a rated instance.

Public functions

Boolean
equals(obj: Any?)
java-static ThumbRating!

Restores a ThumbRating from a Bundle.

Int
Boolean

Whether the rating exists or not.

Bundle!

Returns a Bundle representing the information stored in this rating.

Public properties

Boolean

Inherited functions

From androidx.media3.common.Rating
java-static Rating!

Restores a Rating from a Bundle.

Public constructors

ThumbRating

ThumbRating()

Creates a unrated instance.

ThumbRating

ThumbRating(isThumbsUp: Boolean)

Creates a rated instance.

Parameters
isThumbsUp: Boolean

true for "thumbs up", false for "thumbs down".

Public functions

equals

fun equals(obj: Any?): Boolean

fromBundle

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

Restores a ThumbRating from a Bundle.

hashCode

fun hashCode(): Int

isRated

fun isRated(): Boolean

Whether the rating exists or not.

toBundle

@UnstableApi
fun toBundle(): Bundle!

Returns a Bundle representing the information stored in this rating.

Public properties

isThumbsUp

val isThumbsUpBoolean