Package com.zing.zalo.zbrowser
Class ZBrowser
- java.lang.Object
-
- com.zing.zalo.zbrowser.ZBrowserCore
-
- com.zing.zalo.zbrowser.ZBrowser
-
public class ZBrowser extends ZBrowserCore
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.zing.zalo.zbrowser.ZBrowserCore
ZBrowserCore.CacheCallback, ZBrowserCore.DownloadCallback, ZBrowserCore.InvestigateListener, ZBrowserCore.PreloadCallback, ZBrowserCore.Stats
-
-
Field Summary
-
Fields inherited from class com.zing.zalo.zbrowser.ZBrowserCore
cacheConfig, investigateListener, LOG_TAG, requestHeaders, statistic, VERSION, zbrowserCallback, zbrowserWebChromeClientListener, zbrowserWebviewListener
-
-
Constructor Summary
Constructors Constructor Description ZBrowser(ConfigCache configCache, String diskCacheDirectory, Context context)Deprecated.ZBrowser(ConfigCache configCache, String diskCacheDirectory, ZBrowserPreload.ZBrowserPreloadCallback zbrowserCallback, Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanAllDataInCache(Context context)static voidcleanJumpData(Context context)JSONObjectgetJumpLinkData(String request)static FilegetZBrowserJumpDir(Context context)JSONObjecthandleJsBridge(String param)voidload(List<String> requests, ZBrowserCore.DownloadCallback callback, PreloadParam preloadParam, Context context)voidputJumpData(String domain, CacheItem data)protected voidsetCacheConfig(JSONObject zbrowserConfig, Context context)-
Methods inherited from class com.zing.zalo.zbrowser.ZBrowserCore
addCookie, cancelDebugToast, checkCacheItem, checkUrlRedirect, clearCache, destroy, finalize, getCacheConfig, getFromDiskCache, getHtmlMemCacheSize, getStaticMemCacheSize, getStatistic, getWebResourceResponse, getWebResourceResponse, load, onCallWebviewLoadUrl, onInitWebviewEnded, onInitWebviewStarted, onJumpPreloadEnded, onJumpPreloadStarted, onOpenUrl, putToDiskCache, removeCacheItem, removeFromDiskCache, setCacheCallback, setCacheConfig, setInvestigateListener, setRequestHeaders, setZbrowserPreloadCallback
-
-
-
-
Constructor Detail
-
ZBrowser
@Deprecated public ZBrowser(@NonNull ConfigCache configCache, @NonNull String diskCacheDirectory, Context context)
Deprecated.Must be using constructorZBrowser(ConfigCache, String, ZBrowserPreload.ZBrowserPreloadCallback )- Parameters:
configCache-diskCacheDirectory-
-
ZBrowser
public ZBrowser(@NonNull ConfigCache configCache, @NonNull String diskCacheDirectory, @NonNull ZBrowserPreload.ZBrowserPreloadCallback zbrowserCallback, Context context)
-
-
Method Detail
-
getJumpLinkData
@Nullable public JSONObject getJumpLinkData(@NonNull String request) throws JSONException
- Throws:
JSONException
-
load
public void load(List<String> requests, ZBrowserCore.DownloadCallback callback, PreloadParam preloadParam, Context context)
-
handleJsBridge
public JSONObject handleJsBridge(String param)
-
cleanJumpData
public static void cleanJumpData(Context context)
-
cleanAllDataInCache
public void cleanAllDataInCache(Context context)
-
setCacheConfig
protected void setCacheConfig(JSONObject zbrowserConfig, Context context)
-
-