div-action-timer

Controls the timer.

Parameters

Parameters Description
action

string

Required parameter.

Timer actions:

  • start — starts the timer from a stopped state
  • stop— stops the timer and performs the onEnd action
  • pause — pauses the timer, saves the current time
  • resume — restarts the timer after a pause
  • cancel — interrupts the timer, resets the time
  • reset — cancels the timer, then starts it again
  • Possible values: start, stop, pause, resume, cancel, reset.

    Available platforms: Android, iOS.

    id

    string

    Required parameter.

    Timer ID.

    Available platforms: Android, iOS.

    type

    string

    Required parameter.

    The value must always be timer.

    Available platforms: Android, iOS.

    JSON
    {
      type*: "timer",
      action*: "string",
      id*: "string"
    }