Class CronetEngineWrapper

    • Constructor Detail

      • CronetEngineWrapper

        public CronetEngineWrapper​(Context context)
        Deprecated.
        Creates a wrapper for a CronetEngine built using the most suitable CronetProvider. 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 a CronetEngine built using the most suitable CronetProvider. When natively bundled Cronet and GMSCore Cronet are both available, preferGMSCoreCronet determines which is preferred.
        Parameters:
        context - A context.
        userAgent - A default user agent, or null to 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.
      • CronetEngineWrapper

        public CronetEngineWrapper​(org.chromium.net.CronetEngine cronetEngine)
        Deprecated.
        Creates a wrapper for an existing CronetEngine.
        Parameters:
        cronetEngine - The CronetEngine to wrap.