Packagecom.distriqt.extension.nativewebview
Classpublic class CachePolicy
InheritanceCachePolicy Inheritance Object

Cache policies to use with a WebView.

You should test carefully before relying on a cache policy as they are treated slightly differently across platforms. We have attempted to match operation as closely as possible however there are slight differences between platform operations that haven't been overcome.



Public Constants
 ConstantDefined By
  LOAD_CACHE_ELSE_NETWORK : int = 1
[static] Use the cache (no matter how out of date), or if no cached response exists, load from the network
CachePolicy
  LOAD_CACHE_ONLY : int = 3
[static] Offline mode: use the cache (no matter how out of date), but don't load from the network
CachePolicy
  LOAD_DEFAULT : int = -1
[static] The default will obey cache policy provided by the loaded pages
CachePolicy
  LOAD_NO_CACHE : int = 2
[static] Don't use the cache
CachePolicy
Constant Detail
LOAD_CACHE_ELSE_NETWORKConstant
public static const LOAD_CACHE_ELSE_NETWORK:int = 1

Use the cache (no matter how out of date), or if no cached response exists, load from the network

LOAD_CACHE_ONLYConstant 
public static const LOAD_CACHE_ONLY:int = 3

Offline mode: use the cache (no matter how out of date), but don't load from the network

LOAD_DEFAULTConstant 
public static const LOAD_DEFAULT:int = -1

The default will obey cache policy provided by the loaded pages

LOAD_NO_CACHEConstant 
public static const LOAD_NO_CACHE:int = 2

Don't use the cache