MethodChannelCloudflaredTunnel class

Method channel implementation of CloudflaredTunnelPlatform.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverEventStream → Stream<ServerEvent>
Stream of server events
no setteroverride
tunnelEventStream → Stream<TunnelEvent>
Stream of tunnel events
no setteroverride

Methods

clearRequestLogs() → Future<void>
Clear request logs
override
dispose() → void
getRequestLogs() → Future<List<RequestLog>>
Get request logs
override
getServerState() → Future<ServerState>
Get the current server state
override
getServerUrl() → Future<String>
Get the server URL
override
getState() → Future<TunnelState>
Get the current tunnel state
override
getVersion() → Future<String>
Get the version of the native cloudflared library
override
hasNotificationPermission() → Future<bool>
Check if notification permission is granted
override
isRunning() → Future<bool>
Check if a tunnel is running
override
isServerRunning() → Future<bool>
Check if the server is running
override
isServiceRunning() → Future<bool>
Check if the background service is running
override
listDirectory(String path) → Future<List<FileInfo>>
List directory contents
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestNotificationPermission() → Future<bool>
Request notification permission (Android 13+)
override
start({required String token, String originUrl = '', int haConnections = 4, bool enablePostQuantum = false}) → Future<void>
Start the tunnel with the given token and origin URL
override
startServer({required String rootDir, int port = 8080}) → Future<void>
Start the local HTTP file server
override
stop() → Future<void>
Stop the tunnel
override
stopServer() → Future<void>
Stop the local HTTP file server
override
stopService() → Future<void>
Stop the background service completely
override
toString() → String
A string representation of this object.
inherited
validateToken(String token) → Future<String>
Validate a tunnel token
override

Operators

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