NearbyCommunicationChannelData class
A class for creating a communication channel.
Constructors
- NearbyCommunicationChannelData(String connectedDeviceId, {required NearbyServiceMessagesListener messagesListener, NearbyServiceFilesListener? filesListener, NearbyAndroidCommunicationChannelData androidData = const NearbyAndroidCommunicationChannelData()})
-
Contains connectedDeviceId of the device to be connected
to and additional data.
const
Properties
- androidData → NearbyAndroidCommunicationChannelData
-
Android-specific connection data.
final
- connectedDeviceId → String
-
Identifier of the device to be connected to.
final
- filesListener → NearbyServiceFilesListener?
-
Listener for message stream changes.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- messagesListener → NearbyServiceMessagesListener
-
Listener for message stream changes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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