NearbyAndroidCommunicationChannelData class
Android-specific connection data.
Constructors
-
NearbyAndroidCommunicationChannelData({Duration clientReconnectInterval = const Duration(seconds: 5), ValueChanged<
HttpRequest> ? serverListener, int port = 4045}) -
By default, no data needs to be passed, all values are already set.
This class is used to customize connection of server to client or client to server.
const
Properties
- clientReconnectInterval → Duration
-
The interval at which the client will ping the server
while waiting for it to be created.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- port → int
-
The port on which the socket will be created.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serverListener
→ ValueChanged<
HttpRequest> ? -
Listener of events that come to the server.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override