RequestCallback

interface RequestCallback<Request, Response>

Generic interface for reporting user request completion or rejection by the IVS service.

Parameters

Request

Original request sent by the user

Response

Response sent by the server in case of success

Functions

Link copied to clipboard
open fun onConfirmed(request: Request, response: Response)

Called by the room when IVS service confirms the request with a relevant response (message or event) with a matching request id.

Link copied to clipboard
open fun onRejected(request: Request, error: ChatError)

Called by the room when IVS service rejects the request with an error response with a matching request id.