apple_pencil_double_tap

Last updated:

0 purchases

apple_pencil_double_tap Image
apple_pencil_double_tap Images
Add to Cart

Description:

apple pencil double tap

Apple Pencil Double Tap #
Simple and easy to use plugin for apple pencil interaction detection in any Flutter application.
This package includes platform-specific implementation code for iOS 12.1+ and iPadOS 12.1+.
Instalation #
In the dependencies: section of your pubspec.yaml, add the following line:
apple_pencil_double_tap: <latest_version>
copied to clipboard
Usage #
You can use it very easily. For example:
import 'package:apple_pencil_double_tap/apple_pencil_double_tap.dart';

ApplePencilDoubleTap().listen(
// For iPadOS <17.5
v1Callback: (PreferredAction preferedAction) {
print('Double tap detected. Prefered user action: $preferedAction');
},
// For iPadOS >=17.5
onTapAction: (TapAction action) {
print('TapAction: $action');
},
// For iPadOS >=17.5
onSqueeze: (SqueezeAction action) {
print('SqueezeAction: $action');
},
onError: (e) {
print('Error: $e');
},
);
copied to clipboard
Info #
apple_pencil_double_tap version: 0.0.2
License #
MIT
TODO #

Integration tests

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.