wearable_rotary 1.0.1 copy "wearable_rotary: ^1.0.1" to clipboard
wearable_rotary: ^1.0.1 copied to clipboard

outdated

Flutter plugin that can listen to rotary events on Galaxy watch devices.

wearable_rotary #

Plugin that can listen to rotary events on Galaxy watch devices.

Usage #

To use this plugin, add wearable_rotary as a dependency in your pubspec.yaml file:

dependencies:
  wearable_rotary: ^1.0.1

Example #

// Import package.
import 'package:wearable_rotary/wearable_rotary.dart';

// Be informed when the event (RotaryEvent.clockwise, RotaryEvent.counterClockwise) occurs.
StreamSubscription<RotaryEvent> rotarySubscription =
    rotaryEvents.listen((RotaryEvent event) {
  if (event == RotaryEvent.clockwise) {
    // Do something.
  } else if (event == RotaryEvent.counterClockwise) {
    // Do something.
  }
});

// Be sure to cancel on dispose.
rotarySubscription.cancel();

Supported devices #

This plugin is supported only on Galaxy watches.

15
likes
0
pub points
81%
popularity

Publisher

verified publishertizen.org

Flutter plugin that can listen to rotary events on Galaxy watch devices.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on wearable_rotary