Class HeartRating

  • All Implemented Interfaces:
    Bundleable

    @Deprecated
    public final class HeartRating
    extends Rating
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    A rating expressed as "heart" or "no heart". It can be used to indicate whether the content is a favorite.
    • Constructor Detail

      • HeartRating

        public HeartRating()
        Deprecated.
        Creates a unrated instance.
      • HeartRating

        public HeartRating​(boolean isHeart)
        Deprecated.
        Creates a rated instance.
        Parameters:
        isHeart - true for "heart", false for "no heart".
    • Method Detail

      • isRated

        public boolean isRated()
        Deprecated.
        Description copied from class: Rating
        Whether the rating exists or not.
        Specified by:
        isRated in class Rating
      • isHeart

        public boolean isHeart()
        Deprecated.
        Returns whether the rating is "heart".
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • toBundle

        public Bundle toBundle()
        Deprecated.
        Description copied from interface: Bundleable
        Returns a Bundle representing the information stored in this object.