Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
_rossbower
Level 7

Scene lifecycle events?

I am looking for an event that fires when a scene has finished loading and has displayed its content. I am trying to trigger animations on page load, but if I start them in init, they begin before the elements have appeared on screen. The only lifecycle event I have been able to find so far is init(). Am I missing something?
0 Kudos
1 REPLY 1
RobSMS
Level 7

Re: Scene lifecycle events?

The method I use is to have a Boolean field and a observeField that monitors for changes.

For example, I have a field for In app purchases. When the store cycle completes it pushes a "True" value to the field, then the observe Field runs a callback function to send that data to Google Analytics.

Admitedly, I'm not a "Pro" B/S developer, so there may be a better way, but it works for me.
Need Apps Templates? Content Management for OTT/IPTV? Check me out @ http://rovidx.com
0 Kudos