androidx.core.database
Classes
CursorWindowCompat |
Helper for accessing features in |
DatabaseUtilsCompat |
Helper for accessing features in |
Extension functions summary
For android.database.Cursor | |
ByteArray? |
Cursor.getBlobOrNull(index: Int) Returns the value of the requested column as a nullable byte array. |
Double? |
Cursor.getDoubleOrNull(index: Int) Returns the value of the requested column as a nullable double. |
Float? |
Cursor.getFloatOrNull(index: Int) Returns the value of the requested column as a nullable float. |
Int? |
Cursor.getIntOrNull(index: Int) Returns the value of the requested column as a nullable integer. |
Long? |
Cursor.getLongOrNull(index: Int) Returns the value of the requested column as a nullable long. |
Short? |
Cursor.getShortOrNull(index: Int) Returns the value of the requested column as a nullable short. |
String? |
Cursor.getStringOrNull(index: Int) Returns the value of the requested column as a nullable string. |
Extension functions
getBlobOrNull
inline fun Cursor.getBlobOrNull(index: Int): ByteArray?
Returns the value of the requested column as a nullable byte array.
The result and whether this method throws an exception when the column type is not a blob type is implementation-defined.
See Also
getDoubleOrNull
inline fun Cursor.getDoubleOrNull(index: Int): Double?
Returns the value of the requested column as a nullable double.
The result and whether this method throws an exception when the column type is not a floating-point type is implementation-defined.
See Also
getFloatOrNull
inline fun Cursor.getFloatOrNull(index: Int): Float?
Returns the value of the requested column as a nullable float.
The result and whether this method throws an exception when the column type is not a floating-point type is implementation-defined.
See Also
getIntOrNull
inline fun Cursor.getIntOrNull(index: Int): Int?
Returns the value of the requested column as a nullable integer.
The result and whether this method throws an exception when the column type is not an integral type is implementation-defined.
See Also
getLongOrNull
inline fun Cursor.getLongOrNull(index: Int): Long?
Returns the value of the requested column as a nullable long.
The result and whether this method throws an exception when the column type is not an integral type is implementation-defined.
See Also
getShortOrNull
inline fun Cursor.getShortOrNull(index: Int): Short?
Returns the value of the requested column as a nullable short.
The result and whether this method throws an exception when the column type is not an integral type is implementation-defined.
See Also