Watchmaker Wiki

The ultimate watch maker for Android Wear!

User Tools

Site Tools


lua

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
lua [2017/08/08 16:26]
alex_curran [WatchMaker Lua API]
lua [2017/08/08 16:26] (current)
alex_curran [WatchMaker Lua API]
Line 220: Line 220:
     wm_unschedule_all() ​   -- unschedule all animations or events     wm_unschedule_all() ​   -- unschedule all animations or events
     wm_vibrate(d,​ r)       -- vibrate for duration d (milliseconds) and repeat r times      wm_vibrate(d,​ r)       -- vibrate for duration d (milliseconds) and repeat r times 
-    wm_sfx('​sfx_file'​) ​    -- play MP3 file with name sfx_file.mp3 (needs to be in /​BeautifulWatches/​sfx)+    wm_sfx('​sfx_file'​) ​    -- play MP3 file with name sfx_file.mp3 (needs to be in /​BeautifulWatches/​sfx) ​- supported watches with speaker only
     wm_transition('​...'​) ​  -- run a transition (see Transitions)     wm_transition('​...'​) ​  -- run a transition (see Transitions)
     wm_tag('​...'​) ​         -- ONLY use for dynamic variables otherwise will break     wm_tag('​...'​) ​         -- ONLY use for dynamic variables otherwise will break
lua.txt ยท Last modified: 2017/08/08 16:26 by alex_curran