• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Class (FileSelectorResult)
2
3Implements the **FileSelectorResult** object to notify the file selection result. For details about the sample code, see [onShowFileSelector](./arkts-basic-components-web-events.md#onshowfileselector9).
4
5> **NOTE**
6>
7> - The initial APIs of this component are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
8>
9> - The initial APIs of this class are supported since API version 9.
10>
11> - You can preview how this component looks on a real device, but not in DevEco Studio Previewer.
12
13## constructor<sup>9+</sup>
14
15constructor()
16
17Constructs a **FileSelectorResult**.
18
19**System capability**: SystemCapability.Web.Webview.Core
20
21## handleFileList<sup>9+</sup>
22
23handleFileList(fileList: Array\<string\>): void
24
25Instructs the **Web** component to select a file.
26
27**System capability**: SystemCapability.Web.Webview.Core
28
29**Parameters**
30
31| Name     | Type           | Mandatory | Description        |
32| -------- | --------------- | ---- | ------------ |
33| fileList | Array\<string\> | Yes  | List of files to operate.|
34