flutter_nearby_connections library
Classes
- Device
- The class Device provides a peer information including Device.deviceId, Device.deviceName, Device.state
- Message
- The class Message data transmitted between two peers. it will contain Message.deviceId and Message.message
- NearbyService
Enums
- SessionState
- SessionState It identifies peer's state and provides 3 states: SessionState.notConnected, SessionState.connecting, SessionState.connected.
- Strategy
- Nearby Connections supports different Strategies for advertising and discovery. The best Strategy to use depends on the use case. only for Android OS
Typedefs
- DataReceivedCallback = dynamic Function(dynamic data)
- DataReceivedCallback is used to call back an object under List
-
StateChangedCallback
= dynamic Function(List<
Device> arguments) - StateChangedCallback is used to call back an object under List