• /
  • EnglishEspañolFrançais日本語한국어Português
  • EntrarComeçar agora

Lifecycle methods

Lifecycle methods

Method

Description

nrAppStarted

Send an APP_STARTED event of type ConnectedDeviceSystem.

nrSceneLoaded

Send a SCENE_LOADED event of type ConnectedDeviceSystem.

nrProcessMessage

Check for a system log message, process it and sends the appropriate event.

Examples

Send APP_STARTED event

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

Send SCENE_LOADED event

nrSceneLoaded(m.nr, "MyVideoScene")

Process system log messages

while (true)
msg = wait(0, m.port)
if nrProcessMessage(m.nr, msg) = false
if type(msg) = "roPosterScreenEvent"
if msg.isScreenClosed()
exit while
end if
end if
end if
end while
Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.