Google 致力于为黑人社区推动种族平等。查看具体举措

QueryCallback

interface QueryCallback
androidx.room.RoomDatabase.QueryCallback

Callback interface for when SQLite queries are executed.

Summary

Public methods
abstract Unit
onQuery(@NonNull sqlQuery: String, @NonNull bindArgs: MutableList<Any!>)

Called when a SQL query is executed.

Public methods

onQuery

abstract fun onQuery(
    @NonNull sqlQuery: String,
    @NonNull bindArgs: MutableList<Any!>
): Unit

Called when a SQL query is executed.

Parameters
sqlQuery String: The SQLite query statement.
bindArgs MutableList<Any!>: Arguments of the query if available, empty list otherwise.