AresBridgeWeb class

Web registration for the common Ares Bridge API.

Browsers do not expose a portable background Android Open Accessory transport. The API remains available so applications can query capabilities and present a useful message instead of failing plugin registration.

Inheritance

Constructors

AresBridgeWeb()
Creates the capability-reporting web backend.

Properties

events Stream<AresBridgeEvent>
Broadcast stream containing all typed bridge events.
no setteroverride
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.
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 configuration to 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 request and returns its transfer identifier.
override
sendFiles(List<AresFileTransferRequest> requests) Future<List<String>>
Accepts multiple requests and 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

Static Methods

registerWith(Registrar registrar) → void
Registers the web backend with Flutter.