NexoraSdkPlatform class abstract
The interface that implementations of NexoraSdk must implement.
- Inheritance
-
- Object
- PlatformInterface
- NexoraSdkPlatform
- Implementers
Constructors
- NexoraSdkPlatform()
- Constructs a NexoraSdkPlatform.
Properties
-
bluetoothStream
→ Stream<
BleDevice> -
Stream filtered for bluetooth devices.
no setter
-
cameraStream
→ Stream<
CameraFrame> -
Stream filtered for camera frames.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
locationStream
→ Stream<
LocationData> -
Stream filtered for GPS/Location data.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
unifiedStream
→ Stream<
HardwareEvent> -
Stream of all hardware events.
no setter
Methods
-
connectDevice(
String id) → Future< bool> - Connects to a specific device.
-
getPlatformVersion(
) → Future< String?> - Returns the current platform version.
-
getWifiInfo(
) → Future< WifiInfo?> - Fetches current Wifi information.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermissions(
) → Future< bool> - Requests all necessary permissions.
-
startBluetoothScan(
) → Future< bool> - Starts scanning for Bluetooth devices.
-
startCamera(
{int width = 640, int height = 480}) → Future< bool> - Starts the camera with specified resolution.
-
startLocation(
) → Future< bool> - Starts location updates.
-
startSensor(
{int frequencyHz = 60}) → Future< bool> - Starts sensor data stream.
-
stopBluetoothScan(
) → Future< bool> - Stops scanning for Bluetooth devices.
-
stopCamera(
) → Future< bool> - Stops the camera.
-
stopLocation(
) → Future< bool> - Stops location updates.
-
stopSensor(
) → Future< bool> - Stops sensor data stream.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ NexoraSdkPlatform
-
The default instance of NexoraSdkPlatform to use.
getter/setter pair