---
title: onResume
framework: tvmljs
role: symbol
role_heading: Instance Property
path: tvmljs/app/1627415-onresume
---

# onResume

A callback function that is automatically called when the app moves to the foreground.

## Declaration

```data
attribute function onResume;
```

## Discussion

Discussion Use the onResume attribute to start any required actions when the app moves from the background to the foreground. This attribute must be set to a function that accepts an options argument; for example App.onResume = function (options) {}. The options argument is always set to null.

## See Also

### Responding to App Life Cycle Events

- [onError](tvmljs/app/1627353-onerror.md)
- [onExit](tvmljs/app/1627419-onexit.md)
- [onLaunch](tvmljs/app/1627407-onlaunch.md)
- [onSuspend](tvmljs/app/1627431-onsuspend.md)
