ares_bridge library

Cross-platform USB peer discovery and verified file transfer for Flutter.

Create an AresBridge, query AresBridge.getCapabilities, initialize it, and subscribe to event streams before calling AresBridge.startListening.

Classes

AresBridge
Cross-platform API for discovering an Ares peer and transferring files.
AresBridgeCapabilities
USB functionality exposed by the current platform backend.
AresBridgeConfiguration
Configuration shared by every platform implementation.
AresBridgeEvent
Base type for all broadcast events.
AresConnectionEvent
A listener, handshake, peer-readiness, or disconnection state change.
AresFileTransferRequest
Local file queued for transfer to the connected peer.
AresTransferCompleted
Terminal success for an incoming or outgoing transfer.
AresTransferFailed
Terminal failure for an incoming or outgoing transfer.
AresTransferProgress
A snapshot of an incoming or outgoing transfer's progress.

Enums

AresBridgeRole
The USB role used by the local application.
AresConnectionState
Lifecycle state of the local listener and its current peer.
AresOverwritePolicy
How an incoming file is handled when its destination already exists.
AresTransferDirection
Whether a transfer is being received or sent by the local application.
AresTransferStage
Current phase of a file transfer.