PercentageRating

public final class PercentageRating
extends Object implements Rating

java.lang.Object
   ↳ androidx.media2.session.PercentageRating


A class for rating expressed as a percentage.

Summary

Public constructors

PercentageRating()

Creates a unrated PercentageRating instance.

PercentageRating(float percent)

Creates a PercentageRating instance with the given percentage.

Public methods

boolean equals(Object obj)
float getPercentRating()

Returns the percentage-based rating value.

int hashCode()
boolean isRated()

Returns whether there is a rating value available.

String toString()

Inherited methods

Public constructors

PercentageRating

public PercentageRating ()

Creates a unrated PercentageRating instance.

PercentageRating