MethodChannelShararaBlu class
An implementation of ShararaBluetoothPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- ShararaBluetoothPlatform
- MethodChannelShararaBlu
Constructors
Properties
- devicesEventChannel → EventChannel
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lastSeenDevices
↔ List<
BluetoothDevice> -
getter/setter pairinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
List< ?BluetoothDevice> > -
no setteroverride
Methods
-
cancelDiscovery(
) → Future< void> -
override
-
connect(
BluetoothDevice device, {String uuid = "00001101-0000-1000-8000-00805F9B34FB"}) → Future< bool> -
override
-
disconnect(
BluetoothDevice device) → Future< bool> -
override
-
forceConnecting(
BluetoothDevice device, {String uuid = "00001101-0000-1000-8000-00805F9B34FB"}) → Future< bool> -
override
-
isAllServicesDisposed(
) → Future< bool> -
override
-
isDeviceConnected(
BluetoothDevice device) → Future< bool> -
override
-
isDiscovering(
) → Future< bool> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestBluetoothPermissions(
) → Future< bool> -
startDiscovery(
{Duration? duration}) → Future< Stream< List< ?>BluetoothDevice> > -
override
-
stopAndDisposeAllServices(
) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeToDevice(
BluetoothDevice device, {required List< int> data}) → Future<bool> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited