Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14349] Android: WebView, expose setCacheMode

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2013-08-19T21:24:31.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 17, 2013 Sprint 17 API, Release 3.2.0
ComponentsAndroid
Labelsmodule_webview, qe-testadded
ReporterRadamantis Torres-Lechuga
AssigneeHieu Pham
Created2013-06-22T00:13:21.000+0000
Updated2013-10-23T23:15:14.000+0000

Description

Feature Request

Customer is asking to expose the following class: - setWebChromeClient And the following methods for a webview: - setRenderPriority - setCacheMode

Additional details

For example a couple of other settings found in Android such as: webview.getSettings().setRenderPriority(RenderPriority.HIGH); webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);

Comments

  1. Hieu Pham 2013-07-29

    master PR: https://github.com/appcelerator/titanium_mobile/pull/4510
  2. Hieu Pham 2013-07-31

    Test case:
       var win = Ti.UI.createWindow();
       
       var webView = Ti.UI.createWebView({
       	url: "http://www.google.com",
       	cacheMode: Ti.UI.Android.WEBVIEW_LOAD_NO_CACHE,
       });
       
       Ti.API.info("Cache mode property: " + webView.cacheMode);
       Ti.API.info("Cache mode method: " + webView.getCacheMode());
       
       
       
       
       win.add(webView);
       
       win.open();
       

JSON Source