WebSettings WebSettings Class

Definition

Manages settings state for a WebView.

[Android.Runtime.Register("android/webkit/WebSettings", ApiSince=1, DoNotGenerateAcw=true)]
public abstract class WebSettings : Java.Lang.Object
type WebSettings = class
    inherit Object
Inheritance
WebSettingsWebSettings
Attributes

Remarks

Android platform documentation

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.

Constructors

WebSettings() WebSettings()
WebSettings(IntPtr, JniHandleOwnership) WebSettings(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

MenuItemNone MenuItemNone
MenuItemProcessText MenuItemProcessText
MenuItemShare MenuItemShare
MenuItemWebSearch MenuItemWebSearch
MixedContentAlwaysAllow MixedContentAlwaysAllow

Used with MixedContentMode

In this mode, the WebView will allow a secure origin to load content from any other origin, even if that origin is insecure.

MixedContentCompatibilityMode MixedContentCompatibilityMode

Used with MixedContentMode

In this mode, the WebView will attempt to be compatible with the approach of a modern web browser with regard to mixed content.

MixedContentNeverAllow MixedContentNeverAllow

Used with MixedContentMode

In this mode, the WebView will not allow a secure origin to load content from an insecure origin.

Properties

AllowContentAccess AllowContentAccess

Gets whether this WebView supports content URL access.

AllowFileAccess AllowFileAccess

Gets whether this WebView supports file access.

AllowFileAccessFromFileURLs AllowFileAccessFromFileURLs

Gets whether JavaScript running in the context of a file scheme URL can access content from other file scheme URLs.

AllowUniversalAccessFromFileURLs AllowUniversalAccessFromFileURLs

Gets whether JavaScript running in the context of a file scheme URL can access content from any origin.

BlockNetworkImage BlockNetworkImage

Gets whether the WebView does not load image resources from the network.

BlockNetworkLoads BlockNetworkLoads

Gets whether the WebView does not load any resources from the network.

BuiltInZoomControls BuiltInZoomControls

Gets whether the zoom mechanisms built into WebView are being used.

CacheMode CacheMode

Gets the current setting for overriding the cache mode.

Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
CursiveFontFamily CursiveFontFamily

Gets the cursive font family name.

DatabaseEnabled DatabaseEnabled

Gets whether the database storage API is enabled.

DatabasePath DatabasePath

Gets the path to where database storage API databases are saved.

DefaultFixedFontSize DefaultFixedFontSize

Gets the default fixed font size.

DefaultFontSize DefaultFontSize

Gets the default font size.

DefaultTextEncodingName DefaultTextEncodingName

Gets the default text encoding name.

DefaultZoom DefaultZoom

Gets the default zoom density of the page.

DisabledActionModeMenuItems DisabledActionModeMenuItems
DisplayZoomControls DisplayZoomControls

Gets whether the WebView displays on-screen zoom controls when using the built-in zoom mechanisms.

DomStorageEnabled DomStorageEnabled

Gets whether the DOM Storage APIs are enabled.

FantasyFontFamily FantasyFontFamily

Gets the fantasy font family name.

FixedFontFamily FixedFontFamily

Gets the fixed font family name.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
JavaScriptCanOpenWindowsAutomatically JavaScriptCanOpenWindowsAutomatically

Gets whether JavaScript can open windows automatically.

JavaScriptEnabled JavaScriptEnabled

Gets whether JavaScript is enabled.

JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
LightTouchEnabled LightTouchEnabled

Gets whether light touches are enabled.

LoadsImagesAutomatically LoadsImagesAutomatically

Gets whether the WebView loads image resources.

LoadWithOverviewMode LoadWithOverviewMode

Gets whether this WebView loads pages in overview mode.

MediaPlaybackRequiresUserGesture MediaPlaybackRequiresUserGesture

Gets whether the WebView requires a user gesture to play media.

MinimumFontSize MinimumFontSize

Gets the minimum font size.

MinimumLogicalFontSize MinimumLogicalFontSize

Gets the minimum logical font size.

MixedContentMode MixedContentMode

Gets the current behavior of the WebView with regard to loading insecure content from a secure origin.

NavDump NavDump
OffscreenPreRaster OffscreenPreRaster
PeerReference PeerReference Inherited from Object
PluginsEnabled PluginsEnabled
PluginsPath PluginsPath
SafeBrowsingEnabled SafeBrowsingEnabled
SansSerifFontFamily SansSerifFontFamily

Gets the sans-serif font family name.

SaveFormData SaveFormData

Gets whether the WebView saves form data.

SavePassword SavePassword

Gets whether the WebView saves passwords.

SerifFontFamily SerifFontFamily

Gets the serif font family name.

StandardFontFamily StandardFontFamily

Gets the standard font family name.

TextZoom TextZoom

Gets the text zoom of the page in percent.

ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

UseDoubleTree UseDoubleTree
UserAgent UserAgent
UserAgentString UserAgentString

Gets the WebView's user-agent string.

UseWebViewBackgroundForOverscrollBackground UseWebViewBackgroundForOverscrollBackground
UseWideViewPort UseWideViewPort

Gets whether the WebView supports the "viewport" HTML meta tag or will use a wide viewport.

Methods

Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
EnableSmoothTransition() EnableSmoothTransition()

Gets whether the WebView enables smooth transition while panning or zooming.

Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
GetDefaultUserAgent(Context) GetDefaultUserAgent(Context)

Returns the default User-Agent used by a WebView.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetLayoutAlgorithm() GetLayoutAlgorithm()

Gets the current layout algorithm.

GetPluginState() GetPluginState()

Gets the current state regarding whether plugins are enabled.

GetTextSize() GetTextSize()

Gets the text size of the page.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
SetAppCacheEnabled(Boolean) SetAppCacheEnabled(Boolean)

Sets whether the Application Caches API should be enabled.

SetAppCacheMaxSize(Int64) SetAppCacheMaxSize(Int64)

Sets the maximum size for the Application Cache content.

SetAppCachePath(String) SetAppCachePath(String)

Sets the path to the Application Caches files.

SetEnableSmoothTransition(Boolean) SetEnableSmoothTransition(Boolean)

Sets whether the WebView will enable smooth transition while panning or zooming or while the window hosting the WebView does not have focus.

SetGeolocationDatabasePath(String) SetGeolocationDatabasePath(String)

Sets the path where the Geolocation databases should be saved.

SetGeolocationEnabled(Boolean) SetGeolocationEnabled(Boolean)

Sets whether Geolocation is enabled.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetLayoutAlgorithm(WebSettings+LayoutAlgorithm) SetLayoutAlgorithm(WebSettings+LayoutAlgorithm)

Sets the underlying layout algorithm.

SetNeedInitialFocus(Boolean) SetNeedInitialFocus(Boolean)

Android.Webkit.WebView.requestFocus(int,android.graphics.Rect)

SetPluginState(WebSettings+PluginState) SetPluginState(WebSettings+PluginState)

Tells the WebView to enable, disable, or have plugins on demand.

SetRenderPriority(WebSettings+RenderPriority) SetRenderPriority(WebSettings+RenderPriority)

Sets the priority of the Render thread.

SetSupportMultipleWindows(Boolean) SetSupportMultipleWindows(Boolean)

Sets whether the WebView whether supports multiple windows.

SetSupportZoom(Boolean) SetSupportZoom(Boolean)

Sets whether the WebView should support zooming using its on-screen zoom controls and gestures.

SetTextSize(WebSettings+TextSize) SetTextSize(WebSettings+TextSize)

Sets the text size of the page.

SupportMultipleWindows() SupportMultipleWindows()

Gets whether the WebView supports multiple windows.

SupportZoom() SupportZoom()

Gets whether the WebView supports zoom.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to