Back to Exoplayer

ThumbRating (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/ThumbRating.html

latest4.5 KB
Original Source

Package com.google.android.exoplayer2

Class ThumbRating


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classThumbRatingextends[Rating](Rating.html "class in com.google.android.exoplayer2")

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 "thumbs up" or "thumbs down".

Nested Class Summary

- 

Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable

Bundleable.Creator<T extends Bundleable>

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static Bundleable.Creator<ThumbRating> | CREATOR | Deprecated.

Object that can restore a ThumbRating from a Bundle. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | ThumbRating() | Deprecated.

Creates a unrated instance. | | ThumbRating​(boolean isThumbsUp) | Deprecated.

Creates a rated instance. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | boolean | equals​(Object obj) | Deprecated. | | int | hashCode() | Deprecated. | | boolean | isRated() | Deprecated.

Whether the rating exists or not. | | boolean | isThumbsUp() | Deprecated.

Returns whether the rating is "thumbs up". | | Bundle | toBundle() | Deprecated.

Returns a Bundle representing the information stored in this object. |

- 

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

CREATOR

public static final[Bundleable.Creator](Bundleable.Creator.html "interface in com.google.android.exoplayer2")<[ThumbRating](ThumbRating.html "class in com.google.android.exoplayer2")> CREATOR

Deprecated.

Object that can restore a ThumbRating from a Bundle.

Constructor Detail

- 

ThumbRating

public ThumbRating()

Deprecated.

Creates a unrated instance.

- 

ThumbRating

public ThumbRating​(boolean isThumbsUp)

Deprecated.

Creates a rated instance. Parameters:isThumbsUp - true for "thumbs up", false for "thumbs down".

Method Detail

- 

isRated

public boolean isRated()

Deprecated.

Description copied from class: Rating

Whether the rating exists or not. Specified by:isRated in class Rating

- 

isThumbsUp

public boolean isThumbsUp()

Deprecated.

Returns whether the rating is "thumbs up".

- 

hashCode

public int hashCode()

Deprecated. Overrides:hashCode in class Object

- 

equals

public boolean equals​(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)

Deprecated. Overrides:equals in class Object

- 

toBundle

public[Bundle](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")toBundle()

Deprecated.

Description copied from interface: Bundleable

Returns a Bundle representing the information stored in this object.