WebChromeClient.OnShowFileChooser Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.