Reputation: 11468
WebView has an overview, which helps understand the purpose, expected flow and how to use it, but WebViewClient, for some reason, doesn't have an overview.
What is the purpose of this class? Why have a separate class for the methods it contains? What is the typical/normal sequence of events in its lifetime?
Upvotes: 3
Views: 416
Reputation: 1007099
What is the purpose of this class?
It allows your code to be informed of various events in the lifecycle of an associated WebView
.
Why have a separate class for the methods it contains?
It is a listener interface that you can attach to WebView
, so you can get events through composition instead of inheritance.
Upvotes: 2