WebView.ShowFindDialog(String, Boolean) Method

Definition

Caution

deprecated

Starts an ActionMode for finding text in this WebView.

[Android.Runtime.Register("showFindDialog", "(Ljava/lang/String;Z)Z", "GetShowFindDialog_Ljava_lang_String_ZHandler")]
[System.Obsolete("deprecated")]
public virtual bool ShowFindDialog (string? text, bool showIme);
[<Android.Runtime.Register("showFindDialog", "(Ljava/lang/String;Z)Z", "GetShowFindDialog_Ljava_lang_String_ZHandler")>]
[<System.Obsolete("deprecated")>]
abstract member ShowFindDialog : string * bool -> bool
override this.ShowFindDialog : string * bool -> bool

Parameters

text
String

if non-null, will be the initial text to search for. Otherwise, the last String searched for in this WebView will be used to start.

showIme
Boolean

if true, show the IME, assuming the user will begin typing. If false and text is non-null, perform a find all.

Returns

true if the find dialog is shown, false otherwise

Attributes

Remarks

Starts an ActionMode for finding text in this WebView. Only works if this WebView is attached to the view system.

This member is deprecated. This method does not work reliably on all Android versions; implementing a custom find dialog using WebView.findAllAsync() provides a more robust solution.

Java documentation for android.webkit.WebView.showFindDialog(java.lang.String, boolean).

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