//[tvlib](../../../index.md)/[org.mjdev.tvlib.helpers.cursor](../index.md)/[MatrixCursor](index.md) # MatrixCursor [androidJvm]\ open class [MatrixCursor](index.md) : [AbstractCursor](https://developer.android.com/reference/kotlin/android/database/AbstractCursor.html) ## Constructors | | | |---|---| | [MatrixCursor](-matrix-cursor.md) | [androidJvm]
constructor(columnNames: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://developer.android.com/reference/kotlin/java/lang/String.html)>, initialCapacity: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))constructor(columnNames: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://developer.android.com/reference/kotlin/java/lang/String.html)>) | ## Types | Name | Summary | |---|---| | [RowBuilder](-row-builder/index.md) | [androidJvm]
open class [RowBuilder](-row-builder/index.md) | ## Functions | Name | Summary | |---|---| | [addRow](add-row.md) | [androidJvm]
open fun [addRow](add-row.md)(columnValues: [Iterable](https://developer.android.com/reference/kotlin/java/lang/Iterable.html)<out [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>)
open fun [addRow](add-row.md)(columnValues: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)>) | | [asMap](../../org.mjdev.tvlib.extensions/-cursor-ext/as-map.md) | [androidJvm]
fun [Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html).[asMap](../../org.mjdev.tvlib.extensions/-cursor-ext/as-map.md)(projection: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)> = columnNames): [Map](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?> | | [clear](clear.md) | [androidJvm]
open fun [clear](clear.md)() | | [close](index.md#2133314631%2FFunctions%2F-1596939238) | [androidJvm]
open fun [close](index.md#2133314631%2FFunctions%2F-1596939238)() | | [copyStringToBuffer](index.md#-1239553737%2FFunctions%2F-1596939238) | [androidJvm]
open fun [copyStringToBuffer](index.md#-1239553737%2FFunctions%2F-1596939238)(columnIndex: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), buffer: [CharArrayBuffer](https://developer.android.com/reference/kotlin/android/database/CharArrayBuffer.html)) | | [deactivate](index.md#402521991%2FFunctions%2F-1596939238) | [androidJvm]
open fun [deactivate](index.md#402521991%2FFunctions%2F-1596939238)() | | [equals](-row-builder/index.md#200946864%2FFunctions%2F-1596939238) | [androidJvm]
open fun [equals](-row-builder/index.md#200946864%2FFunctions%2F-1596939238)(obj: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [fillWindow](index.md#-1628262924%2FFunctions%2F-1596939238) | [androidJvm]
open fun [fillWindow](index.md#-1628262924%2FFunctions%2F-1596939238)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), window: [CursorWindow](https://developer.android.com/reference/kotlin/android/database/CursorWindow.html)) | | [getBlob](get-blob.md) | [androidJvm]
open fun [getBlob](get-blob.md)(column: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html)> | | [getClass](-row-builder/index.md#302166976%2FFunctions%2F-1596939238) | [androidJvm]
fun [getClass](-row-builder/index.md#302166976%2FFunctions%2F-1596939238)(): [Class](https://developer.android.com/reference/kotlin/java/lang/Class.html)<out [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)> | | [getColumn](../../org.mjdev.tvlib.extensions/-cursor-ext/get-column.md) | [androidJvm]
fun [Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html).[getColumn](../../org.mjdev.tvlib.extensions/-cursor-ext/get-column.md)(idx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? | | [getColumnCount](index.md#1622030776%2FFunctions%2F-1596939238) | [androidJvm]
open fun [getColumnCount](index.md#1622030776%2FFunctions%2F-1596939238)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [getColumnIndex](index.md#-111152304%2FFunctions%2F-1596939238) | [androidJvm]
open fun [getColumnIndex](index.md#-111152304%2FFunctions%2F-1596939238)(columnName: [String](https://developer.android.com/reference/kotlin/java/lang/String.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [getColumnIndexOrThrow](index.md#-524266019%2FFunctions%2F-1596939238) | [androidJvm]
open fun [getColumnIndexOrThrow](index.md#-524266019%2FFunctions%2F-1596939238)(columnName: [String](https://developer.android.com/reference/kotlin/java/lang/String.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [getColumnName](index.md#902207947%2FFunctions%2F-1596939238) | [androidJvm]
open fun [getColumnName](index.md#902207947%2FFunctions%2F-1596939238)(columnIndex: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://developer.android.com/reference/kotlin/java/lang/String.html) | | [getColumnNames](index.md#-1719667297%2FFunctions%2F-1596939238) | [androidJvm]
abstract fun [getColumnNames](index.md#-1719667297%2FFunctions%2F-1596939238)(): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://developer.android.com/reference/kotlin/java/lang/String.html)> | | [getCount](get-count.md) | [androidJvm]
open fun [getCount](get-count.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [getData](../../org.mjdev.tvlib.extensions/-cursor-ext/get-data.md) | [androidJvm]
fun [Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html).[getData](../../org.mjdev.tvlib.extensions/-cursor-ext/get-data.md)(idx: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)? | | [getDouble](get-double.md) | [androidJvm]
open fun [getDouble](get-double.md)(column: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | | [getExtras](index.md#-1953241338%2FFunctions%2F-1596939238) | [androidJvm]
open fun [getExtras](index.md#-1953241338%2FFunctions%2F-1596939238)(): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) | | [getFloat](get-float.md) | [androidJvm]
open fun [getFloat](get-float.md)(column: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | | [getInt](get-int.md) | [androidJvm]
open fun [getInt](get-int.md)(column: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [getLong](get-long.md) | [androidJvm]
open fun [getLong](get-long.md)(column: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | | [getNotificationUri](index.md#-1069566064%2FFunctions%2F-1596939238) | [androidJvm]
open fun [getNotificationUri](index.md#-1069566064%2FFunctions%2F-1596939238)(): [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html) | | [getNotificationUris](index.md#-1525522121%2FFunctions%2F-1596939238) | [androidJvm]
open fun [getNotificationUris](index.md#-1525522121%2FFunctions%2F-1596939238)(): [List](https://developer.android.com/reference/kotlin/java/util/List.html)<[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html)> | | [getPosition](index.md#-546053120%2FFunctions%2F-1596939238) | [androidJvm]
fun [getPosition](index.md#-546053120%2FFunctions%2F-1596939238)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [getShort](get-short.md) | [androidJvm]
open fun [getShort](get-short.md)(column: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Short](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html) | | [getString](get-string.md) | [androidJvm]
open fun [getString](get-string.md)(column: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [String](https://developer.android.com/reference/kotlin/java/lang/String.html) | | [getType](get-type.md) | [androidJvm]
open fun [getType](get-type.md)(column: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [getTypeOfObject](get-type-of-object.md) | [androidJvm]
open fun [getTypeOfObject](get-type-of-object.md)(obj: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [getWantsAllOnMoveCalls](index.md#387645578%2FFunctions%2F-1596939238) | [androidJvm]
open fun [getWantsAllOnMoveCalls](index.md#387645578%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [getWindow](index.md#5923353%2FFunctions%2F-1596939238) | [androidJvm]
open fun [getWindow](index.md#5923353%2FFunctions%2F-1596939238)(): [CursorWindow](https://developer.android.com/reference/kotlin/android/database/CursorWindow.html) | | [hashCode](-row-builder/index.md#-1960460921%2FFunctions%2F-1596939238) | [androidJvm]
open fun [hashCode](-row-builder/index.md#-1960460921%2FFunctions%2F-1596939238)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | | [isAfterLast](index.md#-1968995785%2FFunctions%2F-1596939238) | [androidJvm]
fun [isAfterLast](index.md#-1968995785%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isBeforeFirst](index.md#921013304%2FFunctions%2F-1596939238) | [androidJvm]
fun [isBeforeFirst](index.md#921013304%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isClosed](index.md#-981495163%2FFunctions%2F-1596939238) | [androidJvm]
open fun [isClosed](index.md#-981495163%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isFirst](index.md#1190785497%2FFunctions%2F-1596939238) | [androidJvm]
fun [isFirst](index.md#1190785497%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isLast](index.md#-721174117%2FFunctions%2F-1596939238) | [androidJvm]
fun [isLast](index.md#-721174117%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [isNull](is-null.md) | [androidJvm]
open fun [isNull](is-null.md)(column: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [move](index.md#-818358423%2FFunctions%2F-1596939238) | [androidJvm]
fun [move](index.md#-818358423%2FFunctions%2F-1596939238)(offset: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [moveToFirst](index.md#1128921691%2FFunctions%2F-1596939238) | [androidJvm]
fun [moveToFirst](index.md#1128921691%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [moveToLast](index.md#-30433063%2FFunctions%2F-1596939238) | [androidJvm]
fun [moveToLast](index.md#-30433063%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [moveToNext](index.md#849926940%2FFunctions%2F-1596939238) | [androidJvm]
fun [moveToNext](index.md#849926940%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [moveToPosition](index.md#-609236339%2FFunctions%2F-1596939238) | [androidJvm]
fun [moveToPosition](index.md#-609236339%2FFunctions%2F-1596939238)(position: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [moveToPrevious](index.md#733556376%2FFunctions%2F-1596939238) | [androidJvm]
fun [moveToPrevious](index.md#733556376%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [newRow](new-row.md) | [androidJvm]
open fun [newRow](new-row.md)(): [MatrixCursor.RowBuilder](-row-builder/index.md) | | [notify](-row-builder/index.md#1018412889%2FFunctions%2F-1596939238) | [androidJvm]
fun [notify](-row-builder/index.md#1018412889%2FFunctions%2F-1596939238)() | | [notifyAll](-row-builder/index.md#1895666752%2FFunctions%2F-1596939238) | [androidJvm]
fun [notifyAll](-row-builder/index.md#1895666752%2FFunctions%2F-1596939238)() | | [onMove](index.md#220849916%2FFunctions%2F-1596939238) | [androidJvm]
open fun [onMove](index.md#220849916%2FFunctions%2F-1596939238)(oldPosition: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), newPosition: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [registerContentObserver](index.md#239567384%2FFunctions%2F-1596939238) | [androidJvm]
open fun [registerContentObserver](index.md#239567384%2FFunctions%2F-1596939238)(observer: [ContentObserver](https://developer.android.com/reference/kotlin/android/database/ContentObserver.html)) | | [registerDataSetObserver](index.md#-2087540134%2FFunctions%2F-1596939238) | [androidJvm]
open fun [registerDataSetObserver](index.md#-2087540134%2FFunctions%2F-1596939238)(observer: [DataSetObserver](https://developer.android.com/reference/kotlin/android/database/DataSetObserver.html)) | | [requery](index.md#-1912539670%2FFunctions%2F-1596939238) | [androidJvm]
open fun [requery](index.md#-1912539670%2FFunctions%2F-1596939238)(): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | | [respond](index.md#-1749331029%2FFunctions%2F-1596939238) | [androidJvm]
open fun [respond](index.md#-1749331029%2FFunctions%2F-1596939238)(extras: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)): [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html) | | [setExtras](index.md#-1259586309%2FFunctions%2F-1596939238) | [androidJvm]
open fun [setExtras](index.md#-1259586309%2FFunctions%2F-1596939238)(extras: [Bundle](https://developer.android.com/reference/kotlin/android/os/Bundle.html)) | | [setNotificationUri](index.md#-1193275998%2FFunctions%2F-1596939238) | [androidJvm]
open fun [setNotificationUri](index.md#-1193275998%2FFunctions%2F-1596939238)(cr: [ContentResolver](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html), notifyUri: [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html)) | | [setNotificationUris](index.md#-604192561%2FFunctions%2F-1596939238) | [androidJvm]
open fun [setNotificationUris](index.md#-604192561%2FFunctions%2F-1596939238)(cr: [ContentResolver](https://developer.android.com/reference/kotlin/android/content/ContentResolver.html), notifyUris: [List](https://developer.android.com/reference/kotlin/java/util/List.html)<[Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html)>) | | [toString](-row-builder/index.md#-2138626986%2FFunctions%2F-1596939238) | [androidJvm]
open fun [toString](-row-builder/index.md#-2138626986%2FFunctions%2F-1596939238)(): [String](https://developer.android.com/reference/kotlin/java/lang/String.html) | | [unregisterContentObserver](index.md#-69386703%2FFunctions%2F-1596939238) | [androidJvm]
open fun [unregisterContentObserver](index.md#-69386703%2FFunctions%2F-1596939238)(observer: [ContentObserver](https://developer.android.com/reference/kotlin/android/database/ContentObserver.html)) | | [unregisterDataSetObserver](index.md#1898473075%2FFunctions%2F-1596939238) | [androidJvm]
open fun [unregisterDataSetObserver](index.md#1898473075%2FFunctions%2F-1596939238)(observer: [DataSetObserver](https://developer.android.com/reference/kotlin/android/database/DataSetObserver.html)) | | [wait](-row-builder/index.md#-1093624847%2FFunctions%2F-1596939238) | [androidJvm]
fun [wait](-row-builder/index.md#-1093624847%2FFunctions%2F-1596939238)(timeoutMillis: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)) | ## Properties | Name | Summary | |---|---| | [columnNames](column-names.md) | [androidJvm]
val [columnNames](column-names.md): [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[String](https://developer.android.com/reference/kotlin/java/lang/String.html)> | | [FIELD_TYPE_BLOB](index.md#-55220604%2FProperties%2F-1596939238) | [androidJvm]
val [FIELD_TYPE_BLOB](index.md#-55220604%2FProperties%2F-1596939238): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 4 | | [FIELD_TYPE_FLOAT](index.md#-2023547459%2FProperties%2F-1596939238) | [androidJvm]
val [FIELD_TYPE_FLOAT](index.md#-2023547459%2FProperties%2F-1596939238): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 2 | | [FIELD_TYPE_INTEGER](index.md#-1924751845%2FProperties%2F-1596939238) | [androidJvm]
val [FIELD_TYPE_INTEGER](index.md#-1924751845%2FProperties%2F-1596939238): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 1 | | [FIELD_TYPE_NULL](index.md#-900240422%2FProperties%2F-1596939238) | [androidJvm]
val [FIELD_TYPE_NULL](index.md#-900240422%2FProperties%2F-1596939238): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 0 | | [FIELD_TYPE_STRING](index.md#818578320%2FProperties%2F-1596939238) | [androidJvm]
val [FIELD_TYPE_STRING](index.md#818578320%2FProperties%2F-1596939238): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) = 3 | | [isNotEmpty](../../org.mjdev.tvlib.extensions/-cursor-ext/is-not-empty.md) | [androidJvm]
val [Cursor](https://developer.android.com/reference/kotlin/android/database/Cursor.html).[isNotEmpty](../../org.mjdev.tvlib.extensions/-cursor-ext/is-not-empty.md): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) |