Package 

Class AllocatorConfig


  • 
    public class AllocatorConfig
    
                        

    Config class used when creating a com.google.android.exoplayer2.upstream.Allocator instance.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class AllocatorConfig.Builder

      The AllocatorConfig Builder.

    • Method Summary

      Modifier and Type Method Description
      int getIndividualAllocationSize() Gets the length of each individual Allocation.
      int getInitialAllocationCount() Gets the number of allocations to create up front.
      boolean isTrimOnReset() Whether memory is freed when the allocator is reset.
      • Methods inherited from class java.lang.Object

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

      • isTrimOnReset

         boolean isTrimOnReset()

        Whether memory is freed when the allocator is reset. Should be true unlessthe allocator will be re-used by multiple player instances.