Class ResourceLoader.FileDescriptorFactory

  • All Implemented Interfaces:
    ModelLoaderFactory<java.lang.Integer,​android.os.ParcelFileDescriptor>
    Enclosing class:
    ResourceLoader<Data>

    @Deprecated
    public static class ResourceLoader.FileDescriptorFactory
    extends java.lang.Object
    implements ModelLoaderFactory<java.lang.Integer,​android.os.ParcelFileDescriptor>
    Deprecated.
    This class is unused by Glide. ResourceLoader.AssetFileDescriptorFactory should be preferred because it's not possible to reliably load a simple FileDescriptor for resources.
    Factory for loading ParcelFileDescriptors from Android resource ids.
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      ModelLoader<java.lang.Integer,​android.os.ParcelFileDescriptor> build​(MultiModelLoaderFactory multiFactory)
      Deprecated.
      Build a concrete ModelLoader for this model type.
      void teardown()
      Deprecated.
      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.Resources resources)
        Deprecated.
    • Method Detail

      • build

        @NonNull
        public ModelLoader<java.lang.Integer,​android.os.ParcelFileDescriptor> build​(MultiModelLoaderFactory multiFactory)
        Deprecated.
        Description copied from interface: ModelLoaderFactory
        Build a concrete ModelLoader for this model type.
        Specified by:
        build in interface ModelLoaderFactory<java.lang.Integer,​android.os.ParcelFileDescriptor>
        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()
        Deprecated.
        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,​android.os.ParcelFileDescriptor>