PsiphonMobileproxyPlatform class abstract

The interface that implementations of psiphon_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 PsiphonMobileproxyPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • PsiphonMobileproxyPlatform
Implementers

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 null if none is running.
getPlatformVersion() Future<String?>
Returns the platform name and version, e.g. Android 14 or iOS 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 psiphonConfig, String localAddress = '127.0.0.1:0', Duration timeout = const Duration(seconds: 60), String? dataRootDirectory}) Future<ProxyInfo>
Connects a Psiphon tunnel and runs a local HTTP proxy in front of it.
stop({Duration gracePeriod = const Duration(seconds: 5)}) Future<void>
Stops the local proxy and disconnects the tunnel, if either is running.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance PsiphonMobileproxyPlatform
The default instance of PsiphonMobileproxyPlatform to use.
getter/setter pair