Package com.my.target.common.listeners
Class HtmlLoadingListener
-
- All Implemented Interfaces:
public abstract class HtmlLoadingListenerClass to notify about HTML5 loading state
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHtmlLoadingListener.CommonErrorRepresents common error, receiving means, that WebView could not load content because of any other except Http type of error, e.g timeout or non-existing domain
public interfaceHtmlLoadingListener.ErrorRepresents loading error data.
public final classHtmlLoadingListener.HttpErrorRepresents http error, receiving means, that WebView could not load content because of standard Http error, e.g 40x or 50x
-
Constructor Summary
Constructors Constructor Description HtmlLoadingListener()
-
Method Summary
Modifier and Type Method Description abstract voidonError(@NonNull() WebView view, @NonNull() HtmlLoadingListener.Error error, @Nullable() String failingUrl)Notifies about error during loading process abstract voidonPageFinished(@NonNull() WebView view, @NonNull() String url)Notifies about finish of page loading abstract voidonPageStarted(@NonNull() WebView view, @NonNull() String url, @Nullable() Bitmap favicon)Notifies about start of page loading -
-
Method Detail
-
onError
abstract void onError(@NonNull() WebView view, @NonNull() HtmlLoadingListener.Error error, @Nullable() String failingUrl)
Notifies about error during loading process
-
onPageFinished
abstract void onPageFinished(@NonNull() WebView view, @NonNull() String url)
Notifies about finish of page loading
-
onPageStarted
abstract void onPageStarted(@NonNull() WebView view, @NonNull() String url, @Nullable() Bitmap favicon)
Notifies about start of page loading
-
-
-
-