Class AssetUriLoader.FileDescriptorFactory

    • Constructor Summary

      Constructors 
      Constructor Description
      FileDescriptorFactory​(android.content.res.AssetManager assetManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ModelLoader<android.net.Uri,​android.content.res.AssetFileDescriptor> build​(MultiModelLoaderFactory multiFactory)
      Build a concrete ModelLoader for this model type.
      DataFetcher<android.content.res.AssetFileDescriptor> buildFetcher​(android.content.res.AssetManager assetManager, java.lang.String assetPath)  
      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

      • FileDescriptorFactory

        public FileDescriptorFactory​(android.content.res.AssetManager assetManager)
    • Method Detail

      • build

        @NonNull
        public ModelLoader<android.net.Uri,​android.content.res.AssetFileDescriptor> build​(MultiModelLoaderFactory multiFactory)
        Description copied from interface: ModelLoaderFactory
        Build a concrete ModelLoader for this model type.
        Specified by:
        build in interface ModelLoaderFactory<android.net.Uri,​android.content.res.AssetFileDescriptor>
        Parameters:
        multiFactory - A map of classes to factories that can be used to construct additional ModelLoaders that this factory's ModelLoader may depend on
        Returns:
        A new ModelLoader
      • 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<android.net.Uri,​android.content.res.AssetFileDescriptor>
      • buildFetcher

        public DataFetcher<android.content.res.AssetFileDescriptor> buildFetcher​(android.content.res.AssetManager assetManager,
                                                                                 java.lang.String assetPath)
        Specified by:
        buildFetcher in interface AssetUriLoader.AssetFetcherFactory<android.content.res.AssetFileDescriptor>