Skip to content

🔥 Gesture handler extension for MIT App Inventor 2 and its clones like Kodular.

License

Notifications You must be signed in to change notification settings

Freedom-Zone/Drift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drift

🔥 Gesture handler extension for MIT App Inventor 2 and its clones like Kodular.

Download

Latest version of the extension (.aix) can be downloaded from the Releases tab.

Methods

Detect Gestures On

( AndroidViewComponent component, Number id)

Registers the specified component so that it starts detecting gestures.

Params
component AndroidViewComponent: The component on which you want Drift to detect gestures.
id Number: A unique number which is used to indentify the specified component when an event fires.

Events

Double Tapped

( Number id, Number fingers)

Fires when a double tap gesture is recognised.

Params
id Number: A unique number which is used to indentify the specified component when an event fires.
fingers Number: The number of fingers used to perform the gesture.

Pinched In

( Number id, Number fingers, Number duration, Number distance, Number speed)

Fires when a pinching in gesture is recognised.

Params
id Number: A unique number which is used to indentify the specified component when an event fires.
fingers Number: The number of fingers used to perform the gesture.
duration Number: The amount of time used to perform the gesture.
distance Number: The distance covered by the fingers while performing the gesture.
speed Number: The speed with which the gesture was performed.

Pinched Out

( Number id, Number fingers, Number duration, Number distance, Number speed)

Fires when a pinching out gesture is recognised.

Params
id Number: A unique number which is used to indentify the specified component when an event fires.
fingers Number: The number of fingers used to perform the gesture.
duration Number: The amount of time used to perform the gesture.
distance Number: The distance covered by the fingers while performing the gesture.
speed Number: The speed with which the gesture was performed.

Swiped Down

( Number id, Number fingers, Number duration, Number distance, Number speed)

Fires when a swiping down gesture is recognised.

Params
id Number: A unique number which is used to indentify the specified component when an event fires.
fingers Number: The number of fingers used to perform the gesture.
duration Number: The amount of time used to perform the gesture.
distance Number: The distance covered by the fingers while performing the gesture.
speed Number: The speed with which the gesture was performed.

Swiped Left

( Number id, Number fingers, Number duration, Number distance, Number speed)

Fires when a swiping left gesture is recognised.

Params
id Number: A unique number which is used to indentify the specified component when an event fires.
fingers Number: The number of fingers used to perform the gesture.
duration Number: The amount of time used to perform the gesture.
distance Number: The distance covered by the fingers while performing the gesture.
speed Number: The speed with which the gesture was performed.

Swiped Right

( Number id, Number fingers, Number duration, Number distance, Number speed)

Fires when a swiping right gesture is recognised.

Params
id Number: A unique number which is used to indentify the specified component when an event fires.
fingers Number: The number of fingers used to perform the gesture.
duration Number: The amount of time used to perform the gesture.
distance Number: The distance covered by the fingers while performing the gesture.
speed Number: The speed with which the gesture was performed.

Swiped Up

( Number id, Number fingers, Number duration, Number distance, Number speed)

Fires when a swiping up gesture is recognised.

Params
id Number: A unique number which is used to indentify the specified component when an event fires.
fingers Number: The number of fingers used to perform the gesture.
duration Number: The amount of time used to perform the gesture.
distance Number: The distance covered by the fingers while performing the gesture.
speed Number: The speed with which the gesture was performed.