Class OkHttpDataSourceFactory

    • Constructor Detail

      • OkHttpDataSourceFactory

        public OkHttpDataSourceFactory​(okhttp3.Call.Factory callFactory)
        Deprecated.
        Creates an instance.
        Parameters:
        callFactory - A Call.Factory (typically an OkHttpClient) for use by the sources created by the factory.
      • OkHttpDataSourceFactory

        public OkHttpDataSourceFactory​(okhttp3.Call.Factory callFactory,
                                       @Nullable
                                       String userAgent)
        Deprecated.
        Creates an instance.
        Parameters:
        callFactory - A Call.Factory (typically an OkHttpClient) for use by the sources created by the factory.
        userAgent - An optional User-Agent string.
      • OkHttpDataSourceFactory

        public OkHttpDataSourceFactory​(okhttp3.Call.Factory callFactory,
                                       @Nullable
                                       String userAgent,
                                       @Nullable
                                       okhttp3.CacheControl cacheControl)
        Deprecated.
        Creates an instance.
        Parameters:
        callFactory - A Call.Factory (typically an OkHttpClient) for use by the sources created by the factory.
        userAgent - An optional User-Agent string.
        cacheControl - An optional CacheControl for setting the Cache-Control header.
      • OkHttpDataSourceFactory

        public OkHttpDataSourceFactory​(okhttp3.Call.Factory callFactory,
                                       @Nullable
                                       String userAgent,
                                       @Nullable
                                       TransferListener listener)
        Deprecated.
        Creates an instance.
        Parameters:
        callFactory - A Call.Factory (typically an OkHttpClient) for use by the sources created by the factory.
        userAgent - An optional User-Agent string.
        listener - An optional listener.
      • OkHttpDataSourceFactory

        public OkHttpDataSourceFactory​(okhttp3.Call.Factory callFactory,
                                       @Nullable
                                       String userAgent,
                                       @Nullable
                                       TransferListener listener,
                                       @Nullable
                                       okhttp3.CacheControl cacheControl)
        Deprecated.
        Creates an instance.
        Parameters:
        callFactory - A Call.Factory (typically an OkHttpClient) for use by the sources created by the factory.
        userAgent - An optional User-Agent string.
        listener - An optional listener.
        cacheControl - An optional CacheControl for setting the Cache-Control header.