MethodChannelPsiphonMobileproxy class

An implementation of PsiphonMobileproxyPlatform that uses a method channel to talk to the native Psiphon proxy library on Android and iOS.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
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.
override
getPlatformVersion() Future<String?>
Returns the platform name and version, e.g. Android 14 or iOS 17.5.
override
isRunning() Future<bool>
Whether a local proxy is currently running.
override
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.
override
stop({Duration gracePeriod = const Duration(seconds: 5)}) Future<void>
Stops the local proxy and disconnects the tunnel, if either is running.
override
toString() String
A string representation of this object.
inherited

Operators

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