Back

CreateSmartWatch

Returns a SmartWatch object.

  smw = app.CreateSmartWatch( type ) → app object - SmartWatch

The following methods are available on the SmartWatch object:

  GetVersion() → string
  SetMenu( p1, p2 )
  ShowLayout( layout, x, y )
  StopApp()
  Vibrate( p1, p2, p3 )

unknown
object: SWlay
?
string: path to file or folder ( "/absolute/..." or "relative/..." )
number: fraction of screen width
number: integer
?
string: "Linear" or "Absolute" or "Frame"
?
?
string
number: fraction of screen height
?
GetVersion
object: SWlay
removes SmartWatch layout
string: comma separated
define menu list
function()
called when pressed back button
function()
called when pressed menu button
function()
called when smartwatch app sow
function()
called when smartwatch app started
function()
called when smartwatch app stopped
function(?)
called when swiped over smartwatch
function(?)
called when smartwatch touched
?
object: SWlay
?
?
StopApp
Vibrates smartwatch