Coder Social home page Coder Social logo

freedom-zone / drift Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 75 KB

๐Ÿ”ฅ Gesture handler extension for MIT App Inventor 2 and its clones like Kodular.

License: GNU General Public License v3.0

Java 100.00%
appinventor kodular appinventorextension extensions drift opensource-aix

drift's Introduction

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.

drift's People

Contributors

shreyashsaitwal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.