NimmstaPlatform class abstract
Abstract class that defines the platform interface for the Nimmsta plugin. This acts as the base class for platform-specific implementations, ensuring consistent API usage across different platforms.
- Inheritance
-
- Object
- PlatformInterface
- NimmstaPlatform
- Implementers
Constructors
- NimmstaPlatform()
-
Constructor for NimmstaPlatform, initializing with a
PlatformInterfacetoken.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
connect(
) → Future< void> - Establishes a connection to the Nimmsta device.
-
disconnect(
) → Future< void> - Disconnects from the currently connected Nimmsta device.
-
getCallbackStream(
) → Stream< NimmstaEvent> - Provides a stream of callback events from the Nimmsta device.
-
isConnected(
) → Future< bool?> - Checks if the Nimmsta device is currently connected.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reconnect(
String address) → Future< void> - Attempts to reconnect to the Nimmsta device using its address.
-
setLayout(
String layout, Map< String, String> data) → Future<void> - Configures the screen layout on the Nimmsta device.
-
setLEDColor(
Color color) → Future< void> - Sets the LED color of the Nimmsta device.
-
setScreenInfoAsync(
Map< String, String> data) → Future<void> - Updates the screen information asynchronously on the Nimmsta device.
-
toString(
) → String -
A string representation of this object.
inherited
-
triggerBeeperBurst(
int repeat, int duration, int pulseDuration, int intensity) → Future< void> - Triggers a beeper burst pattern on the Nimmsta device.
-
triggerLEDBurst(
int repeat, int duration, int pulseDuration, Color color) → Future< void> - Triggers an LED burst pattern on the Nimmsta device.
-
triggerVibrationBurst(
int repeat, int duration, int pulseDuration, int intensity) → Future< void> - Triggers a vibration burst pattern on the Nimmsta device.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ NimmstaPlatform
-
Retrieves the current platform interface instance.
getter/setter pair