docs/doc/reference/com/google/android/exoplayer2/offline/DownloadCursor.html
Package com.google.android.exoplayer2.offline
AutoCloseable, Closeable[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceDownloadCursorextends[Closeable](https://developer.android.com/reference/java/io/Closeable.html "class or interface in java.io")
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.
Provides random read-write access to the result set returned by a database query.
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | close() |
Deprecated.
|
| int | getCount() |
Deprecated.
Returns the numbers of downloads in the cursor.
|
| Download | getDownload() |
Deprecated.
Returns the download at the current position.
|
| int | getPosition() |
Deprecated.
Returns the current position of the cursor in the download set.
|
| default boolean | isAfterLast() |
Deprecated.
Returns whether the cursor is pointing to the position after the last download.
|
| default boolean | isBeforeFirst() |
Deprecated.
Returns whether the cursor is pointing to the position before the first download.
|
| boolean | isClosed() |
Deprecated.
Returns whether the cursor is closed
|
| default boolean | isFirst() |
Deprecated.
Returns whether the cursor is pointing to the first download.
|
| default boolean | isLast() |
Deprecated.
Returns whether the cursor is pointing to the last download.
|
| default boolean | moveToFirst() |
Deprecated.
Move the cursor to the first download.
|
| default boolean | moveToLast() |
Deprecated.
Move the cursor to the last download.
|
| default boolean | moveToNext() |
Deprecated.
Move the cursor to the next download.
|
| boolean | moveToPosition(int position) |
Deprecated.
Move the cursor to an absolute position.
|
| default boolean | moveToPrevious() |
Deprecated.
Move the cursor to the previous download. |
-
[Download](Download.html "class in com.google.android.exoplayer2.offline")getDownload()
Deprecated.
Returns the download at the current position.
-
int getCount()
Deprecated.
Returns the numbers of downloads in the cursor.
-
int getPosition()
Deprecated.
Returns the current position of the cursor in the download set. The value is zero-based. When the download set is first returned the cursor will be at position -1, which is before the first download. After the last download is returned another call to next() will leave the cursor past the last entry, at a position of count(). Returns:the current cursor position.
-
boolean moveToPosition(int position)
Deprecated.
Move the cursor to an absolute position. The valid range of values is -1 <= position <= count.
This method will return true if the request destination was reachable, otherwise, it returns false.
Parameters:position - the zero-based position to move to.Returns:whether the requested move fully succeeded.
-
default boolean moveToFirst()
Deprecated.
Move the cursor to the first download.
This method will return false if the cursor is empty.
Returns:whether the move succeeded.
-
default boolean moveToLast()
Deprecated.
Move the cursor to the last download.
This method will return false if the cursor is empty.
Returns:whether the move succeeded.
-
default boolean moveToNext()
Deprecated.
Move the cursor to the next download.
This method will return false if the cursor is already past the last entry in the result set.
Returns:whether the move succeeded.
-
default boolean moveToPrevious()
Deprecated.
Move the cursor to the previous download.
This method will return false if the cursor is already before the first entry in the result set.
Returns:whether the move succeeded.
-
default boolean isFirst()
Deprecated.
Returns whether the cursor is pointing to the first download.
-
default boolean isLast()
Deprecated.
Returns whether the cursor is pointing to the last download.
-
default boolean isBeforeFirst()
Deprecated.
Returns whether the cursor is pointing to the position before the first download.
-
default boolean isAfterLast()
Deprecated.
Returns whether the cursor is pointing to the position after the last download.
-
boolean isClosed()
Deprecated.
Returns whether the cursor is closed
-
void close()
Deprecated.
Specified by:close in interface AutoCloseableSpecified by:close in interface Closeable