WebChromeClient.OnShowFileChooser Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Indiquez au client d’afficher un sélecteur de fichiers.
[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
Paramètres
- webView
- WebView
Instance WebView qui lance la requête.
- filePathCallback
- IValueCallback
Appelez ce rappel pour fournir la liste des chemins d’accès aux fichiers à charger ou null annuler. Doit être appelé uniquement si l’implémentation #onShowFileChooser retourne true.
- fileChooserParams
- WebChromeClient.FileChooserParams
Décrit le mode de choix de fichier à ouvrir et les options à utiliser avec celui-ci.
Retours
true si filePathCallback est appelé, false pour utiliser la gestion par défaut.
- Attributs
Remarques
Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.