IviMediaRating

@IviExperimental(reasons = [])
class IviMediaRating(val type: IviMediaRating.Type = Type.UNSUPPORTED, initialValue: Float = UNRATED) : Serializable

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)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Rating type. When UNSUPPORTED, the rating is ignored.

Properties

Link copied to clipboard
Link copied to clipboard

Retrieve the given rating value. May be UNRATED.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

The equality check is overridden to ensure identical IviMediaItems containing IviMediaRating will be equal.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Retrieve whether a heart rating was given.

Link copied to clipboard

Retrieve whether a thumbs down rating was given.

Link copied to clipboard

Retrieve whether a thumbs up rating was given.

Link copied to clipboard

Retrieve whether a rating is present or not.

Link copied to clipboard
open override fun toString(): String

Extensions

Link copied to clipboard