Releases: jguix/Cordova-Flic
Releases · jguix/Cordova-Flic
v0.5
The following functions are available:
- Flic.init (appId, appSecret, appName, options). Initialize Flic and register known buttons for receiving single click, double click and hold events
- appId: your app client ID
- appSecret: your app client secret
- appName: your app name
- options: a properties object with 2 function callbacks
- options.success: called on function success
- options.error: called on function error
- Flic.getKnownButtons(options). Get known buttons. Returns the list of buttons grabbed in a previous run of the app
- options: a properties object with 2 function callbacks
- options.success: called on function success
- options.error: called on function error
- options: a properties object with 2 function callbacks
- Flic.grabButton(options). Grab a button and register it for receiving single click, double click and hold events. Returns the grabbed button
- options: a properties object with 2 function callbacks
- options.success: called on function success
- options.error: called on function error
- options: a properties object with 2 function callbacks