Properties
hashCode
→ int
The hash code for this object.
no setter inherited
identifier
↔ String
Identifier for this device (eg: uuid)
getter/setter pair
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
signingManager
↔ SigningManager
SiginigManager instance.
It will be used to sign messages before sending it to the connected peer
getter/setter pair
Methods
initialize ()
→ void
Initializer function for this class. It will be executed when ConnectionsManager
is initialized.
Use this to set-up your authentication flow, like setting up the signingManager instance.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processHandshake (Device device , NearbyMessage message )
→ void
Process a handshake message
This will be executed when a NearbyMessageType.handshake message is received
setIdentifier (String newId )
→ void
Sets identifier
sign (NearbyMessage message )
→ void
Signs NearbyMessage using signingManager instance
startHandshake (Device device )
→ void
Starts handshake protocol.
This will be executed every new device connection
toString ()
→ String
A string representation of this object.
inherited