Lifecycle methods
Method | Description |
|---|---|
Send an APP_STARTED event of type ConnectedDeviceSystem. | |
Send a SCENE_LOADED event of type ConnectedDeviceSystem. | |
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 ifend while