add

abstract fun add(record: R, executor: Executor, callback: CompletionCallback<Unit>): AsyncOperationTask

Adds a record to this data provider.

Return

an object representing pending completion of the task.

Parameters

record

Record to be added.

executor

Executor used for events dispatching. By default events are dispatched on the main thread.

callback

Callback to handle result.

open fun add(record: R, callback: CompletionCallback<Unit>): AsyncOperationTask

Adds a record to this data provider.

Return

an object representing pending completion of the task.

Parameters

record

Record to be added.

callback

Callback to handle result, triggered on the main thread.