Package 

Class InMemoryCoverService

  • All Implemented Interfaces:
    org.readium.r2.shared.publication.Publication.Service , org.readium.r2.shared.publication.services.CoverService , org.readium.r2.shared.util.Closeable

    
    public final class InMemoryCoverService
     implements CoverService
                        

    A CoverService which uses a provided in-memory bitmap.

    • Method Summary

      Modifier and Type Method Description
      Bitmap cover() Returns the publication cover as a Bitmap at its maximum size.
      • Methods inherited from class org.readium.r2.shared.publication.services.InMemoryCoverService

        coverFitting
      • Methods inherited from class org.readium.r2.shared.publication.services.CoverService

        close
      • Methods inherited from class java.lang.Object

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

      • cover

         Bitmap cover()

        Returns the publication cover as a Bitmap at its maximum size.

        If the cover is not a bitmap format (e.g. SVG), it should be scaled down to fit the screen.