resumeRequest(_:)
Resumes an assistance request, in response to a call from the framework.
Declaration
@MainActor func resumeRequest(_ request: LiveAssistanceRequest) async throws -> LiveAssistanceRequest.ResponseDiscussion
The framework calls this method on your extension after your container app performs any required setup — such as completing a sign in — and calls returnToCall(requestID:).
In your implementation, do the following:
Re-perform any needed setup and eligibility checks.
Forward
request.urlto your backend.Return LiveAssistanceRequest.Response.proceed. If the request can’t proceed, throw LiveAssistanceRequestError instead to end the request.
The framework only calls this method if you handled the original call to prepareAssistanceRequest(_:) by returning LiveAssistanceRequest.Response.requiresUserInput(reason:). It doesn’t call this method if you originally returned LiveAssistanceRequest.Response.proceed.