1# Class (FileSelectorParam) 2<!--Kit: ArkWeb--> 3<!--Subsystem: Web--> 4<!--Owner: @zourongchun--> 5<!--Designer: @zhufenghao--> 6<!--Tester: @ghiker--> 7<!--Adviser: @HelloCrease--> 8 9Web组件获取文件对象。示例代码参考[onShowFileSelector事件](./arkts-basic-components-web-events.md#onshowfileselector9)。 10 11> **说明:** 12> 13> - 该组件首批接口从API version 8开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 14> 15> - 本Class首批接口从API version 9开始支持。 16> 17> - 示例效果请以真机运行为准,当前DevEco Studio预览器不支持。 18 19## constructor<sup>9+</sup> 20 21constructor() 22 23FileSelectorParam的构造函数。 24 25**系统能力:** SystemCapability.Web.Webview.Core 26 27## getTitle<sup>9+</sup> 28 29getTitle(): string 30 31获取文件选择器标题。 32 33**系统能力:** SystemCapability.Web.Webview.Core 34 35**返回值:** 36 37| 类型 | 说明 | 38| ------ | ---------- | 39| string | 返回文件选择器标题。 | 40 41## getMode<sup>9+</sup> 42 43getMode(): FileSelectorMode 44 45获取文件选择器的模式。 46 47**系统能力:** SystemCapability.Web.Webview.Core 48 49**返回值:** 50 51| 类型 | 说明 | 52| ---------------------------------------- | ----------- | 53| [FileSelectorMode](./arkts-basic-components-web-e.md#fileselectormode9) | 返回文件选择器的模式。 | 54 55## getAcceptType<sup>9+</sup> 56 57getAcceptType(): Array\<string\> 58 59获取文件过滤类型。 60 61**系统能力:** SystemCapability.Web.Webview.Core 62 63**返回值:** 64 65| 类型 | 说明 | 66| --------------- | --------- | 67| Array\<string\> | 返回文件过滤类型。 | 68 69## isCapture<sup>9+</sup> 70 71isCapture(): boolean 72 73获取是否调用多媒体能力。 74 75**系统能力:** SystemCapability.Web.Webview.Core 76 77**返回值:** 78 79| 类型 | 说明 | 80| ------- | ------------ | 81| boolean | 返回是否调用多媒体能力。<br>true表示返回调用多媒体能力,false表示返回未调用多媒体能力。 | 82 83## getMimeTypes<sup>18+</sup> 84 85getMimeTypes(): Array\<string\> 86 87获取文件MIME类型。 88 89**系统能力:** SystemCapability.Web.Webview.Core 90 91**返回值:** 92 93| 类型 | 说明 | 94| --------------- | --------- | 95| Array\<string\> | 返回文件MIME类型。 |