Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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.