Skip to content

Releases: jguix/Cordova-Flic

v0.5

16 May 21:16
Compare
Choose a tag to compare

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
  • 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