getRecords

abstract fun getRecords(): Result<Set<T>, SearchFailure>

Synchronously get the collection of CustomRecords previously set in the CustomSearchDataProvider.

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

Return

A SearchFailure if the operation fails, or returns the custom data records if it succeeds.


Asynchronously get the collection of CustomRecords previously set in the CustomSearchDataProvider.

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

Return

The Cancellable operation.

Parameters

callback

The callback that is invoked upon completion of the operation.