---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-action-timer.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-action-timer.md
  - href: en/concepts/divs/2/div-action-timer.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-action-timer
Controls the timer.

## Parameters
| Parameters | Description |
| --- | --- |
| `action` | <p>**string**</p><p>Required parameter.</p><p>Timer actions:<li>`start` — starts the timer from a stopped state</li><li>`stop`— stops the timer and performs the `onEnd` action</li><li>`pause` — pauses the timer, saves the current time</li><li>`resume` — restarts the timer after a pause</li><li>`cancel` — interrupts the timer, resets the time</li><li>`reset` — cancels the timer, then starts it again</li></p><p>Possible values: `start`, `stop`, `pause`, `resume`, `cancel`, `reset`.</p><p>Available platforms: Android, iOS, web.</p> |
| `id` | <p>**string**</p><p>Required parameter.</p><p>Timer ID.</p><p>Available platforms: Android, iOS, web.</p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `timer`.</p><p>Available platforms: Android, iOS, web.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "timer",
  action*: "string",
  id*: "string"
}
```
</details>
