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