The second Android 11 Developer Preview is now available, test it out and share your feedback.

Rating

interface Rating : VersionedParcelable
androidx.media2.common.Rating

An interface to encapsulate rating information used as content metadata.

Summary

Public methods

abstract Boolean

Returns whether there is a rating value available.

Public methods

isRated

abstract fun isRated(): Boolean

Returns whether there is a rating value available.

Return
Boolean true if there is an available rating value.