update
open fun update(uri: Uri, values: ContentValues, selection: String, selectionArgs: Array<String>): Int
Implement this to handle requests to update one or more rows.
Return
the number of rows affected.
Parameters
uri
The URI to query. This can potentially have a record ID if this is an update request for a specific record.
values
A Bundle mapping from column names to new column values (NULL is a valid value).
selection
An optional filter to match rows to update.
selection Args
You may include ?s in selection, which will be replaced by the values from selectionArgs, in order that they appear in the selection. The values will be bound as Strings.