setRecords

abstract fun setRecords(records: Set<T>): Result<Unit, SearchError>

Synchronously sets a collection of CustomRecords in the CustomSearchDataProvider. It replaces any existing custom data. This data can then be taken into consideration for any subsequent search operations.

Return

A SearchError if the operation fails , or Unit if the operation succeeds.

Parameters

records

The records to be set.


abstract fun setRecords(records: Set<T>, callback: SetCustomRecordsCallback): Cancellable

Asynchronously sets a collection of CustomRecords in the CustomSearchDataProvider. It replaces any existing custom data. This data can then be taken into consideration for any subsequent search operations.

Return

The Cancellable operation.

Parameters

records

The records to be set.

callback

The callback that is invoked upon completion of the operation.