Class HtmlLoadingListener

  • All Implemented Interfaces:

    
    public abstract class HtmlLoadingListener
    
                        

    Class to notify about HTML5 loading state

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class HtmlLoadingListener.CommonError

      Represents 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 interface HtmlLoadingListener.Error

      Represents loading error data.

      public final class HtmlLoadingListener.HttpError

      Represents http error, receiving means, that WebView could not load content because of standard Http error, e.g 40x or 50x

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onError(@NonNull() WebView view, @NonNull() HtmlLoadingListener.Error error, @Nullable() String failingUrl) Notifies about error during loading process
      abstract void onPageFinished(@NonNull() WebView view, @NonNull() String url) Notifies about finish of page loading
      abstract void onPageStarted(@NonNull() WebView view, @NonNull() String url, @Nullable() Bitmap favicon) Notifies about start of page loading
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HtmlLoadingListener

        HtmlLoadingListener()
    • Method Detail

      • 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