Flic2Listener class abstract
implement this listener to receive information about flic 2 buttons being found, connected and pressed
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onButtonClicked(
Flic2ButtonClick buttonClick) → void - called by the plugin as a button is clicked
-
onButtonConnected(
) → void - called by the plugin as a button becomes connected. This is called during scanning as an in-between step
-
onButtonDiscovered(
String buttonAddress) → void - called as a button is discovered (by bluetooth address) by the plugin (while scanning)
-
onButtonFound(
Flic2Button button) → void - called as a button is found by the plugin (while scanning)
-
onButtonUpOrDown(
Flic2ButtonUpOrDown button) → void - called by the plugin when a connected button was pressed or released. Events of this type are "live", i.e., happened very recently.
-
onFlic2Error(
String error) → void - called by the plugin as an unexpected error is encountered
-
onPairedButtonDiscovered(
Flic2Button button) → void - called as an already paired button is found by the plugin (while scanning)
-
onScanCompleted(
) → void - called by the plugin as a scan is completed
-
onScanStarted(
) → void - called by the plugin as a scan is started
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited