---
title: nrAppStarted
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/lifecycle/nrappstarted
---

## Syntax

```js
  nrAppStarted(nr as Object, obj as Object) as Void
```

## Description

Send an APP_STARTED event of type ConnectedDeviceSystem.

## Arguments

| Arguments | Description                                     |
| --------- | ----------------------------------------------- |
| `nr`      | New Relic Agent object.                         |
| `obj`     | The object sent as argument of Main subroutine. |

## Return

Nothing.

## Example

```js
  	sub Main(aa as Object)
		        ...
		        nrAppStarted(m.nr, aa)
```
