Class LazyRetrofitConverterFactory

  • All Implemented Interfaces:

    
    public final class LazyRetrofitConverterFactory
    
                        

    Wrapper around Converter.Factory that initializes the factory lazily on first request.

    This allows factory to be initialized lazily on the background thread instead of eagerly on the main thread on the app startup, improving the user experience.

    This wrapper only works for converter factories that handle all values (such as Moshi converter factory).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <Error class: unknown class><<Error class: unknown class>, out <Error class: unknown class>> ,kotlin.Array,.)>responseBodyConverter(<Error class: unknown class> type, Array<out Annotation> annotations, <Error class: unknown class> retrofit)
      <Error class: unknown class><out <Error class: unknown class>, <Error class: unknown class>> ,kotlin.Array,kotlin.Array,.)>requestBodyConverter(<Error class: unknown class> type, Array<out Annotation> parameterAnnotations, Array<out Annotation> methodAnnotations, <Error class: unknown class> retrofit)
      • Methods inherited from class java.lang.Object

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

      • LazyRetrofitConverterFactory

        LazyRetrofitConverterFactory(Lazy<<Error class: unknown class>> parentFactory)