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