setRecords

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

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.

Important: This is a Public Preview API. It may be changed or removed at any time.

Return

A SearchFailure 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.

Important: This is a Public Preview API. It may be changed or removed at any time.

Return

The Cancellable operation.

Parameters

records

The records to be set.

callback

The callback that is invoked upon completion of the operation.