void willRotate ( UIInterfaceOrientation toOrient , double duration ) { if ( orientListener != null ) { orientListener . willRotate ( toOrient , duration ) ; } }
with iOS for rotation notifications game loop callbacks and app lifecycle events