생명주기 방법
방법 | 설명 |
|---|---|
ConnectedDeviceSystem 유형의 APP_STARTED 이벤트를 보냅니다. | |
ConnectedDeviceSystem 유형의 SCENE_LOADED 이벤트를 보냅니다. | |
시스템 로그 메시지를 확인하고 처리한 후 적절한 이벤트를 전송합니다. |
예
APP_STARTED 이벤트를 전송합니다.
sub Main(aa as Object) ... nrAppStarted(m.nr, aa)SCENE_LOADED 이벤트를 전송합니다.
nrSceneLoaded(m.nr, "MyVideoScene")프로세스 시스템 로그 메시지
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