PlatformProxyController class abstract
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)
- Inheritance
-
- Object
- PlatformInterface
- PlatformProxyController
Constructors
- PlatformProxyController(PlatformProxyControllerCreationParams params)
-
Creates a new PlatformProxyController
factory
- PlatformProxyController.implementation(PlatformProxyControllerCreationParams params)
- Used by the platform implementation to create a new PlatformProxyController.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- params → PlatformProxyControllerCreationParams
-
The parameters used to initialize the PlatformProxyController.
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