ProxyController class
Manages setting and clearing a process-specific override for the Android system-wide proxy settings that govern network requests made by WebView
.
WebView
may make network requests in order to fetch content that is not otherwise read from the file system or provided directly by application code.
In this case by default the system-wide Android network proxy settings are used to redirect requests to appropriate proxy servers.
In the rare case that it is necessary for an application to explicitly specify its proxy configuration, this API may be used to explicitly specify the proxy rules that govern WebView initiated network requests.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - ProxyController)
Constructors
- ProxyController()
-
Manages setting and clearing a process-specific override for the Android system-wide proxy settings that govern network requests made by
WebView
. - ProxyController.fromPlatform(PlatformProxyController platform)
- Constructs a ProxyController from a specific platform implementation.
- ProxyController.fromPlatformCreationParams(PlatformProxyControllerCreationParams params)
- Constructs a ProxyController from creation params for a specific platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- platform → PlatformProxyController
-
Implementation of PlatformProxyController for the current platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearProxyOverride(
) → Future< void> - Clears the proxy settings. Network connections are not guaranteed to immediately use the new proxy setting; wait for the method to return before loading a page.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setProxyOverride(
{required ProxySettings settings}) → Future< void> -
Sets ProxySettings which will be used by all
WebView
s in the app. URLs that match patterns in the bypass list will not be directed to any proxy. Instead, the request will be made directly to the origin specified by the URL. Network connections are not guaranteed to immediately use the new proxy setting; wait for the method to return before loading a page. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
instance(
) → ProxyController - Gets the ProxyController shared instance.