Condividi tramite


WebChromeClient.OnShowFileChooser Method

Definition

Tell the client to show a file chooser.

[Android.Runtime.Register("onShowFileChooser", "(Landroid/webkit/WebView;Landroid/webkit/ValueCallback;Landroid/webkit/WebChromeClient$FileChooserParams;)Z", "GetOnShowFileChooser_Landroid_webkit_WebView_Landroid_webkit_ValueCallback_Landroid_webkit_WebChromeClient_FileChooserParams_Handler")]
public virtual bool OnShowFileChooser (Android.Webkit.WebView? webView, Android.Webkit.IValueCallback? filePathCallback, Android.Webkit.WebChromeClient.FileChooserParams? fileChooserParams);
[<Android.Runtime.Register("onShowFileChooser", "(Landroid/webkit/WebView;Landroid/webkit/ValueCallback;Landroid/webkit/WebChromeClient$FileChooserParams;)Z", "GetOnShowFileChooser_Landroid_webkit_WebView_Landroid_webkit_ValueCallback_Landroid_webkit_WebChromeClient_FileChooserParams_Handler")>]
abstract member OnShowFileChooser : Android.Webkit.WebView * Android.Webkit.IValueCallback * Android.Webkit.WebChromeClient.FileChooserParams -> bool
override this.OnShowFileChooser : Android.Webkit.WebView * Android.Webkit.IValueCallback * Android.Webkit.WebChromeClient.FileChooserParams -> bool

Parameters

webView
WebView

The WebView instance that is initiating the request.

filePathCallback
IValueCallback

Invoke this callback to supply the list of paths to files to upload, or null to cancel. Must only be called if the #onShowFileChooser implementation returns true.

fileChooserParams
WebChromeClient.FileChooserParams

Describes the mode of file chooser to be opened, and options to be used with it.

Returns

true if filePathCallback will be invoked, false to use default handling.

Attributes

Remarks

Java documentation for android.webkit.WebChromeClient.onShowFileChooser(android.webkit.WebView, android.webkit.ValueCallback, android.webkit.FileChooserParams).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to