OutlineMobileproxyPlatform class abstract
The interface that implementations of outline_mobileproxy must
implement.
Platform implementations should extend this class rather than implement
it, as extends ensures that the subclass will get the default
implementation, while platform implementations that implements this
interface will be broken by newly added OutlineMobileproxyPlatform
methods.
- Inheritance
-
- Object
- PlatformInterface
- OutlineMobileproxyPlatform
- Implementers
Constructors
- OutlineMobileproxyPlatform()
- Constructs a OutlineMobileproxyPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
currentProxy(
) → Future< ProxyInfo?> -
Returns the ProxyInfo of the currently running proxy, or
nullif none is running. -
getPlatformVersion(
) → Future< String?> -
Returns the platform name and version, e.g.
Android 14oriOS 17.5. -
isRunning(
) → Future< bool> - Whether a local proxy is currently running.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
{required String transportConfig, String localAddress = '127.0.0.1:0'}) → Future< ProxyInfo> -
Starts a local proxy that forwards traffic through the given
transportConfig. -
startSmart(
{required SmartDialerConfig config, String localAddress = '127.0.0.1:0'}) → Future< ProxyInfo> - Starts a local proxy backed by the Smart Dialer, which automatically selects a working DNS/TLS strategy by probing SmartDialerConfig.testDomains.
-
stop(
{int timeoutSeconds = 5}) → Future< void> - Stops the currently running local proxy, if any.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ OutlineMobileproxyPlatform
-
The default instance of OutlineMobileproxyPlatform to use.
getter/setter pair