To Add a Timer

(skipUI doesn't seem to work, so it always shows the user the screen in the Clock with the timer)

function btntimer_OnTouch () {
   app.AddtimerToClock(111, "Timer!", true) ;
}
 
app.AddtimerToClock = function(seconds, message, skipUI) {
   const extras = [{
      name: "android.intent.extra.alarm.LENGTH",
      type: "int",
      value: seconds || 0
   }]
 
   if(message)
      extras.push({
         name: "android.intent.extra.alarm.MESSAGE",
         type: "string",
         value: message
      })
 
   if(skipUI) 
      extras.push({
      name: "android.intent.extra.alarm.SKIP_UI",
      type: "boolean",
      value: true
   })
 
   app.SendIntent(null, null, "android.intent.action.SET_TIMER",
      null, null, null, JSON.stringify(extras))
}