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

getString

inline fun Cursor.getString(columnName: String): String

Returns the value of the requested column as a string.

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

See Also

Cursor.getColumnIndexOrThrow

Cursor.getString