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

getInt

inline fun Cursor.getInt(columnName: String): Int

Returns the value of the requested column as an integer.

The result and whether this method throws an exception when the column value is null or the column type is not an integral type is implementation-defined.

See Also

Cursor.getColumnIndexOrThrow

Cursor.getInt