MethodChannelAresBridge class
Default platform implementation backed by Flutter channels.
Commands use ares_bridge/methods; native event maps arrive on the
broadcast channel ares_bridge/events and are decoded into typed events.
- Inheritance
-
- Object
- PlatformInterface
- AresBridgePlatform
- MethodChannelAresBridge
Constructors
Properties
- eventChannel → EventChannel
-
final
-
events
→ Stream<
AresBridgeEvent> -
Broadcast stream containing all typed bridge events.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelTransfer(
String transferId) → Future< void> -
Cancels the queued or active transfer identified by
transferId.override -
dispose(
) → Future< void> -
Releases all resources owned by this backend.
override
-
getCapabilities(
) → Future< AresBridgeCapabilities> -
Returns roles and features actually implemented by this backend.
override
-
initialize(
AresBridgeConfiguration configuration) → Future< void> -
Applies
configurationto the native transport.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendFile(
AresFileTransferRequest request) → Future< String> -
Accepts one outgoing
requestand returns its transfer identifier.override -
sendFiles(
List< AresFileTransferRequest> requests) → Future<List< String> > -
Accepts multiple
requestsand returns IDs in the same order.override -
startListening(
) → Future< void> -
Requests listener startup; peer connection is reported on events.
override
-
stopListening(
) → Future< void> -
Stops listening and closes the current peer session.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited