Class CronetEngineWrapper
- java.lang.Object
-
- com.google.android.exoplayer2.ext.cronet.CronetEngineWrapper
-
@Deprecated public final class CronetEngineWrapper extends Object
Deprecated.UseCronetEngine
directly. See the Android developer guide to learn how to instantiate aCronetEngine
for use by your application. You can also useCronetUtil.buildCronetEngine(android.content.Context)
to build aCronetEngine
suitable for use withCronetDataSource
.A wrapper class for aCronetEngine
.
-
-
Constructor Summary
Constructors Constructor Description CronetEngineWrapper(Context context)
Deprecated.Creates a wrapper for aCronetEngine
built using the most suitableCronetProvider
.CronetEngineWrapper(Context context, String userAgent, boolean preferGooglePlayServices)
Deprecated.Creates a wrapper for aCronetEngine
built using the most suitableCronetProvider
.CronetEngineWrapper(org.chromium.net.CronetEngine cronetEngine)
Deprecated.Creates a wrapper for an existingCronetEngine
.
-
-
-
Constructor Detail
-
CronetEngineWrapper
public CronetEngineWrapper(Context context)
Deprecated.Creates a wrapper for aCronetEngine
built using the most suitableCronetProvider
. When natively bundled Cronet and GMSCore Cronet are both available, the natively bundled provider is preferred.- Parameters:
context
- A context.
-
CronetEngineWrapper
public CronetEngineWrapper(Context context, @Nullable String userAgent, boolean preferGooglePlayServices)
Deprecated.Creates a wrapper for aCronetEngine
built using the most suitableCronetProvider
. When natively bundled Cronet and GMSCore Cronet are both available,preferGMSCoreCronet
determines which is preferred.- Parameters:
context
- A context.userAgent
- A default user agent, ornull
to use a default user agent of theCronetEngine
.preferGooglePlayServices
- Whether Cronet from Google Play Services should be preferred over Cronet Embedded, if both are available.
-
CronetEngineWrapper
public CronetEngineWrapper(org.chromium.net.CronetEngine cronetEngine)
Deprecated.Creates a wrapper for an existingCronetEngine
.- Parameters:
cronetEngine
- The CronetEngine to wrap.
-
-