AresBridgePlatform class abstract

Contract implemented by each Ares Bridge platform backend.

Applications normally use AresBridge rather than this class. Platform packages and tests can extend it to provide another transport.

Inheritance
  • Object
  • PlatformInterface
  • AresBridgePlatform
Implementers

Constructors

AresBridgePlatform()
Creates a platform implementation with the verification token.

Properties

events Stream<AresBridgeEvent>
Broadcast stream containing all typed bridge events.
no setter
hashCode int
The hash code for this object.
no setterinherited
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.
dispose() Future<void>
Releases all resources owned by this backend.
getCapabilities() Future<AresBridgeCapabilities>
Returns roles and features actually implemented by this backend.
initialize(AresBridgeConfiguration configuration) Future<void>
Applies configuration to the native transport.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendFile(AresFileTransferRequest request) Future<String>
Accepts one outgoing request and returns its transfer identifier.
sendFiles(List<AresFileTransferRequest> requests) Future<List<String>>
Accepts multiple requests and returns IDs in the same order.
startListening() Future<void>
Requests listener startup; peer connection is reported on events.
stopListening() Future<void>
Stops listening and closes the current peer session.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance AresBridgePlatform
Registered backend used by new AresBridge instances.
getter/setter pair