🧩 GestureKit
An extension for MIT App Inventor 2.Extension to detect Swipe, Long Press, Click, and Pinch gestures.
Specifications
Package: com.otniel.gesturekit
Size: 8.12 KB
Minimum API Level: 8
Updated On: 2025-04-17T17:00:00Z
Built & documented using: FAST v2.8.4
Events:
GestureKit has total 4 events.
OnSwipe
Triggered when a swipe gesture is detected.
Direction can be: "up", "down", "left", "right".
Parameter | Type |
---|---|
direction | text |
component | component |
OnLongPress
Triggered when a long press is detected.
Parameter | Type |
---|---|
component | component |
OnPinch
Triggered when a pinch gesture is detected.
Scale > 1 = zoom in, < 1 = zoom out.
Parameter | Type |
---|---|
scaleFactor | number |
component | component |
OnClick
Triggered when a single tap (click) is detected.
Parameter | Type |
---|---|
component | component |
Method:
GestureKit has total 1 method.
AttachTo
Attaches gesture detection to a specific component.
Use this function to add swipe, long press, or pinch detection to any view (such as buttons, images, or layouts).
Parameter | Type |
---|---|
component | component |
Update v2
aia : gesturekit.aia (534.8 KB)
extension :
com.otniel.gesturekit.aix (8.1 KB)