CursorMapper

abstract class CursorMapper
kotlin.Any
   ↳ androidx.leanback.database.CursorMapper

Abstract class used to convert the current Cursor row to a single object.

Summary

Public constructors

Abstract class used to convert the current Cursor row to a single object.

Public methods

open Any!
convert(cursor: Cursor!)

Convert a Cursor at its current position to an Object.

Protected methods

abstract Any!
bind(cursor: Cursor!)

A subclass should implement this method to create a single object using binding information.

abstract Unit
bindColumns(cursor: Cursor!)

Called once when the associated Cursor is changed.

Public constructors

<init>

CursorMapper()

Abstract class used to convert the current Cursor row to a single object.

Public methods

convert

open fun convert(cursor: Cursor!): Any!

Convert a Cursor at its current position to an Object.

Protected methods

bind

protected abstract fun bind(cursor: Cursor!): Any!

A subclass should implement this method to create a single object using binding information. This method is not intended to be called outside of CursorMapper.

bindColumns

protected abstract fun bindColumns(cursor: Cursor!): Unit

Called once when the associated Cursor is changed. A subclass should bind column indexes to column names in this method. This method is not intended to be called outside of CursorMapper.