开发者

what's the purpose of WebViewClient.onLoadResource

I would like to ask the purpose the

WebViewClient.onLoadResource

even we can get this callback when webkit tries to load resource but since its return type is void

what ca开发者_Python百科n we anything in this function???

I know in API 11 there's a shouldInterceptResouce but how about for those froyo/gingerbread devices?

thanks


From the docs:

Notify the host application that the WebView will load the resource specified by the given url.

So, you can override it in your implementation of WebViewClient, for example, to cache resources for future use in your application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜