WebSettings.SetNeedInitialFocus(Boolean) Method

Definition

Tells the WebView whether it needs to set a node to have focus when WebView#requestFocus(int, android.graphics.Rect) is called.

[Android.Runtime.Register("setNeedInitialFocus", "(Z)V", "GetSetNeedInitialFocus_ZHandler")]
public abstract void SetNeedInitialFocus (bool flag);
[<Android.Runtime.Register("setNeedInitialFocus", "(Z)V", "GetSetNeedInitialFocus_ZHandler")>]
abstract member SetNeedInitialFocus : bool -> unit

Parameters

flag
Boolean

whether the WebView needs to set a node

Attributes

Remarks

Tells the WebView whether it needs to set a node to have focus when WebView#requestFocus(int, android.graphics.Rect) is called. The default value is true.

Java documentation for android.webkit.WebSettings.setNeedInitialFocus(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