IviMediaRating
class IviMediaRating(val type: IviMediaRating.Type = Type.UNSUPPORTED, initialValue: Float = UNRATED) : Serializable
Content copied to clipboard
Rating assigned to an IviMediaItem.
The type determines the allowed value range for initialValue
.
Parameters
type
Type of rating.
initialValue
The initial rating value. Values outside of the allowed range for the selected type will be considered as no rating.
Constructors
Link copied to clipboard
fun IviMediaRating(type: IviMediaRating.Type = Type.UNSUPPORTED, initialValue: Float = UNRATED)
Content copied to clipboard
Types
Properties
Functions
Link copied to clipboard
The equality check is overridden to ensure identical IviMediaItems containing IviMediaRating will be equal.
Link copied to clipboard
Retrieve whether a thumbs down rating was given.
Link copied to clipboard
Retrieve whether a thumbs up rating was given.
Extensions
Link copied to clipboard
Converts IviMediaRating to a RatingCompat, if possible, or null.