core-ktx / androidx.database / android.database.Cursor / getDoubleOrNull

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

Cursor.isNull

Cursor.getDouble

inline fun Cursor.getDoubleOrNull(columnName: String): 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

Cursor.getColumnIndexOrThrow

Cursor.isNull

Cursor.getDouble