Contents

handleFileInputPrompt(parameters:initiatedBy:)

Returns the result of handling a JavaScript request to open files.

Declaration

@MainActor func handleFileInputPrompt(parameters: WKOpenPanelParameters, initiatedBy frame: WebPage.FrameInfo) async -> WebPage.FileInputPromptResult

Parameters

  • parameters:

    The options to use for the file dialog.

  • frame:

    Information about the frame whose JavaScript process initiated this call.

Return Value

The result of handling the invocation; if the result is affirmative, the response will include a set of files returned to JavaScript.