FileChooserParams

代表文件选择器请求的参数,该请求由 WebView 的 onShowFileChooser 方法触发。

此接口提供了有关文件请求的详细信息,例如选择模式、可接受的 MIME 类型、 是否启用了媒体捕获等。其设计参考了 Android 的 android.webkit.WebChromeClient.FileChooserParams 类。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getAcceptTypes(): Array<String?>?

返回文件选择器可接受的 MIME 类型数组。

Link copied to clipboard
abstract fun getFilenameHint(): String?

获取用作默认选项的文件名提示。

Link copied to clipboard
abstract fun getMode(): String

返回文件选择器的模式,用于指示所请求的文件选择类型。

Link copied to clipboard
abstract fun getTitle(): CharSequence?

获取要在文件选择器界面中显示的标题。

Link copied to clipboard
abstract fun isCaptureEnabled(): Boolean

指示文件选择器是否应优先使用实时媒体捕获功能(例如,通过摄像头或麦克风)。