Class ResourceLoader.StreamFactory

  • All Implemented Interfaces:
    ModelLoaderFactory<java.lang.Integer,​java.io.InputStream>
    Enclosing class:
    ResourceLoader<Data>

    public static class ResourceLoader.StreamFactory
    extends java.lang.Object
    implements ModelLoaderFactory<java.lang.Integer,​java.io.InputStream>
    Factory for loading InputStreams from Android resource ids.
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamFactory​(android.content.res.Resources resources)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ModelLoader<java.lang.Integer,​java.io.InputStream> build​(MultiModelLoaderFactory multiFactory)
      Build a concrete ModelLoader for this model type.
      void teardown()
      A lifecycle method that will be called when this factory is about to replaced.
      • Methods inherited from class java.lang.Object

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

      • StreamFactory

        public StreamFactory​(android.content.res.Resources resources)
    • Method Detail

      • teardown

        public void teardown()
        Description copied from interface: ModelLoaderFactory
        A lifecycle method that will be called when this factory is about to replaced.
        Specified by:
        teardown in interface ModelLoaderFactory<java.lang.Integer,​java.io.InputStream>