sendFeedback

abstract fun sendFeedback(feedbackEvent: FeedbackEvent, callback: FeedbackCallback): Cancellable

Asynchronously sends a feedback event for the search.

Parameters

feedbackEvent

The feedback event.

callback

The FeedbackCallback invoked when the feedback operation has finished. It returns an error if the operation fails.

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


abstract fun sendFeedback(feedbackEvent: FeedbackEvent): Result<Unit, SearchFailure>

Synchronously sends a feedback event for the search.

Return

The Result containing a Unit if the call succeeds, or a SearchFailure if it fails.

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

Parameters

feedbackEvent

The feedback event.