BluetoothConnection class
Represents an ongoing Bluetooth connection to a remote device.
Constructors
- BluetoothConnection.fromConnectionId(int _id, String address)
Properties
- address → String
-
The Bluetooth-Adress of the remote device.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
input
↔ Stream<
Uint8List> ? -
Stream sink used to read from the remote Bluetooth device
getter/setter pair
- isConnected → bool
-
Specifies whether the connection is currently open.
no setter
- output ↔ BluetoothStreamSink
-
Stream sink used to write to the remote Bluetooth device
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Closes the connection immediately and does not wait for any ongoing writes
-
dispose(
) → void - Should be called to make sure the connection is closed and resources are freed (sockets/channels).
-
finish(
) → Future< void> - Closes the connection gracefully and waits for ongoing writes to be finished
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeString(
String text) → void -
This is a helper function, for send text to the output. It will encode your supplied
text
in utf8.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited