sendFeedback

open override fun sendFeedback(feedbackEvent: FeedbackEvent, callback: FeedbackCallback): Cancellable

Asynchronously sends a feedback event for the search.

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

Parameters

feedbackEvent

The feedback event.

callback

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


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

Synchronously sends a feedback event for the search.

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

Return

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

Parameters

feedbackEvent

The feedback event.