Class DownloadException.DownloadOnMainThreadException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public final class DownloadException.DownloadOnMainThreadException
    extends DownloadException
                        

    Thrown if you try to open a remote document/image with any of the PdfDocumentLoader or ImageDocumentLoader open methods on the main thread. If you really need to do a blocking call on the main thread use either:

    openDocumentAsync(...).subscribeOn(Schedulers.io()).blockingGet()

    or better

    openDocumentAsync(...).subscribeOn(Schedulers.io()).blockingSubscribe(
         { document -> ... },
         { error -> ... }
    )
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

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

      • DownloadException.DownloadOnMainThreadException

        DownloadException.DownloadOnMainThreadException()
    • Method Detail