Android Programming Press on the image to return to the main documentation page.

WebViewSettings

Written by Martin Pearman

List of types:

WebViewSettings

WebViewSettings


Events:

None

Members:


  getAllowFileAccess (webView1 As android.webkit.WebView) As Boolean

  getCacheMode (webView1 As android.webkit.WebView) As String

  getCursiveFontFamily (webView1 As android.webkit.WebView) As String

  getDefaultFixedFontSize (webView1 As android.webkit.WebView) As Int

  getDefaultFontSize (webView1 As android.webkit.WebView) As Int

  getDefaultTextEncodingName (webView1 As android.webkit.WebView) As String

  getDefaultZoom (webView1 As android.webkit.WebView) As String

  getJavaScriptCanOpenWindowsAutomatically (webView1 As android.webkit.WebView) As Boolean

  getLightTouchEnabled (webView1 As android.webkit.WebView) As Boolean

  getLoadsImagesAutomatically (webView1 As android.webkit.WebView) As Boolean

  getLoadWithOverviewMode (webView1 As android.webkit.WebView) As Boolean

  getMinimumFontSize (webView1 As android.webkit.WebView) As Int

  getPluginState (webView1 As android.webkit.WebView) As String

  getSaveFormData (webView1 As android.webkit.WebView) As Boolean

  getSavePassword (webView1 As android.webkit.WebView) As Boolean

  getUserAgentString (webView1 As android.webkit.WebView) As String

  getUseWideViewPort (webView1 As android.webkit.WebView) As Boolean

  setAllowFileAccess (webView1 As android.webkit.WebView, allow As Boolean)

  setAppCacheEnabled (webView1 As android.webkit.WebView, flag As Boolean)

  setAppCacheMaxSize (webView1 As android.webkit.WebView, appCacheMaxSize As Long)

  setAppCachePath (webView1 As android.webkit.WebView, appCachePath As String)

  setCacheMode (webView1 As android.webkit.WebView, cacheMode As String)

  setCursiveFontFamily (webView1 As android.webkit.WebView, font As String)

  setDefaultFixedFontSize (webView1 As android.webkit.WebView, size As Int)

  setDefaultFontSize (webView1 As android.webkit.WebView, size As Int)

  setDefaultTextEncodingName (webView1 As android.webkit.WebView, encoding As String)

  setDefaultZoom (webView1 As android.webkit.WebView, density As String)

  setJavaScriptCanOpenWindowsAutomatically (webView1 As android.webkit.WebView, flag As Boolean)

  setLightTouchEnabled (webView1 As android.webkit.WebView, enabled As Boolean)

  setLoadsImagesAutomatically (webView1 As android.webkit.WebView, flag As Boolean)

  setLoadWithOverviewMode (webView1 As android.webkit.WebView, overview As Boolean)

  setMinimumFontSize (webView1 As android.webkit.WebView, size As Int)

  setPluginState (webView1 As android.webkit.WebView, state As String)

  setSaveFormData (webView1 As android.webkit.WebView, save As Boolean)

  setSavePassword (webView1 As android.webkit.WebView, save As Boolean)

  setSupportZoom (webView1 As android.webkit.WebView, support As Boolean)

  setUserAgentString (webView1 As android.webkit.WebView, userAgent As String)

  setUseWideViewPort (webView1 As android.webkit.WebView, use As Boolean)

  supportZoom (webView1 As android.webkit.WebView) As Boolean

Members description:

getAllowFileAccess (webView1 As android.webkit.WebView) As Boolean
Returns true if this WebView supports file access.
getCacheMode (webView1 As android.webkit.WebView) As String
Return the current setting for overriding the cache mode.
Possible return values are: "LOAD_CACHE_ELSE_NETWORK", "LOAD_CACHE_ONLY", "LOAD_DEFAULT", "LOAD_NO_CACHE" and "LOAD_NORMAL"
getCursiveFontFamily (webView1 As android.webkit.WebView) As String
Get the cursive font family name. The default is "cursive".
Returns the cursive font family name as a string.
getDefaultFixedFontSize (webView1 As android.webkit.WebView) As Int
Get the default fixed font size. The default is 16.
Returns a non-negative integer between 1 and 72.
getDefaultFontSize (webView1 As android.webkit.WebView) As Int
Get the default font size. The default is 16.
Returns a non-negative integer between 1 and 72.
getDefaultTextEncodingName (webView1 As android.webkit.WebView) As String
Get the default text encoding name. The default is "Latin-1".
Returns the default text encoding name as a string.
getDefaultZoom (webView1 As android.webkit.WebView) As String
Get the default zoom density of the page.
Possible return values are: "CLOSE", "FAR" and "MEDIUM"
getJavaScriptCanOpenWindowsAutomatically (webView1 As android.webkit.WebView) As Boolean
Get if javascript can open windows automatically. The default is false.
Returns true if javascript can open windows automatically during window.open().
getLightTouchEnabled (webView1 As android.webkit.WebView) As Boolean
Returns true if light touches are enabled.
getLoadsImagesAutomatically (webView1 As android.webkit.WebView) As Boolean
Return true if the WebView will load image resources automatically. The default is true.
getLoadWithOverviewMode (webView1 As android.webkit.WebView) As Boolean
Returns true if this WebView loads page with overview mode.
getMinimumFontSize (webView1 As android.webkit.WebView) As Int
Get the minimum font size. The default is 8.
Returns a non-negative integer between 1 and 72.
getPluginState (webView1 As android.webkit.WebView) As String
Get the current plugin state.
Possible return values are: "OFF", "ON" and "ON_DEMAND"
getSaveFormData (webView1 As android.webkit.WebView) As Boolean
Get whether the WebView is saving form data and displaying prior entries/autofill.
getSavePassword (webView1 As android.webkit.WebView) As Boolean
Get whether the WebView is saving passwords.
getUserAgentString (webView1 As android.webkit.WebView) As String
Get the WebView's user-agent string.
getUseWideViewPort (webView1 As android.webkit.WebView) As Boolean
Returns true if the WebView is using a wide viewport.
setAllowFileAccess (webView1 As android.webkit.WebView, allow As Boolean)
Enable or disable file access within WebView. File access is enabled by default.
Note that this enables or disables file system access only.
Assets and resources are still accessible using file:///android_asset
setAppCacheEnabled (webView1 As android.webkit.WebView, flag As Boolean)
Tell the WebView to enable Application Caches API.
setAppCacheMaxSize (webView1 As android.webkit.WebView, appCacheMaxSize As Long)
Set the maximum size for the Application Caches content.
appCacheMaxSize - The cache size in bytes.
setAppCachePath (webView1 As android.webkit.WebView, appCachePath As String)
Set a custom path to the Application Caches files.
The client must ensure it exists before this call.
appCachePath - String path to the directory containing Application Caches files. The appCache path can be the empty string but should not be null.
setCacheMode (webView1 As android.webkit.WebView, cacheMode As String)
Override the way the cache is used. The way the cache is used is based on the navigation option.
For a normal page load, the cache is checked and content is re-validated as needed.
When navigating back, content is not revalidated, instead the content is just pulled from the cache.
This function allows the client to override this behavior.
cacheMode - Possible values are: "LOAD_CACHE_ELSE_NETWORK", "LOAD_CACHE_ONLY", "LOAD_DEFAULT", "LOAD_NO_CACHE" and "LOAD_NORMAL"
setCursiveFontFamily (webView1 As android.webkit.WebView, font As String)
Set the cursive font family name.
font - A font family name.
setDefaultFixedFontSize (webView1 As android.webkit.WebView, size As Int)
Set the default fixed font size.
size - A non-negative integer between 1 and 72.
setDefaultFontSize (webView1 As android.webkit.WebView, size As Int)
Set the default font size.
size - A non-negative integer between 1 and 72.
setDefaultTextEncodingName (webView1 As android.webkit.WebView, encoding As String)
Set the default text encoding name to use when decoding html pages.
The default is "Latin-1".
setDefaultZoom (webView1 As android.webkit.WebView, density As String)
Set the default zoom density of the page.
density - Possible values are: "CLOSE", "FAR" and "MEDIUM".
setJavaScriptCanOpenWindowsAutomatically (webView1 As android.webkit.WebView, flag As Boolean)
Tell javascript to open windows automatically.
This applies to the javascript function window.open().
setLightTouchEnabled (webView1 As android.webkit.WebView, enabled As Boolean)
Enables using light touches to make a selection and activate mouseovers.
setLoadsImagesAutomatically (webView1 As android.webkit.WebView, flag As Boolean)
Tell the WebView to load image resources automatically.
setLoadWithOverviewMode (webView1 As android.webkit.WebView, overview As Boolean)
Set whether the WebView loads a page with overview mode.
setMinimumFontSize (webView1 As android.webkit.WebView, size As Int)
Set the minimum font size.
size - A non-negative integer between 1 and 72.
setPluginState (webView1 As android.webkit.WebView, state As String)
Tell the WebView to enable, disable, or have plugins load on demand.
On demand mode means that if a plugin exists that can handle the embedded content, a placeholder icon will be shown instead of the plugin.
When the placeholder is clicked, the plugin will be enabled.
setSaveFormData (webView1 As android.webkit.WebView, save As Boolean)
Store whether the WebView is saving form data.
setSavePassword (webView1 As android.webkit.WebView, save As Boolean)
Store whether the WebView is saving password.
setSupportZoom (webView1 As android.webkit.WebView, support As Boolean)
Set whether the WebView supports zoom.
setUserAgentString (webView1 As android.webkit.WebView, userAgent As String)
Set the WebView's user-agent string.
If the string "userAgent" is null or empty, it will use the system default user-agent string.
setUseWideViewPort (webView1 As android.webkit.WebView, use As Boolean)
Tell the WebView to use the wide viewport.
supportZoom (webView1 As android.webkit.WebView) As Boolean
Returns whether the WebView supports zoom.
Top