div-action-timer

Controls the timer.

Parameters

Parameters Description
action

string

Required parameter.

Defines timer action:

  • start- starts the timer when stopped, does onStart action;
  • stop- stops timer, resets the time, does onEnd action;
  • pause- pause timer, preserves current time;
  • resume- starts timer from paused state, restores saved time;
  • cancel- stops timer, resets its state, does onInterrupt action;
  • reset- cancels timer and starts it again.
  • Possible values: start, stop, pause, resume, cancel, reset.

    Available platforms: Android.

    id

    string

    Required parameter.

    Timer identifier.

    Available platforms: Android.

    type

    string

    Required parameter.

    The value must always be timer.

    Available platforms: Android.

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