DeviceOrientationListener

From Headbone Creative
Revision as of 02:15, 17 April 2013 by Tyson Joehler (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This script receives notifications from the DeviceOrientationDetector when the aspect ratio of the screen changes. It doesn't do a whole lot besides expose an event that passes the new aspect ratio to other listener scripts.

Currently, the following scripts use DeviceOrientationListener to do something when the aspect ratio changes:

Events

The event exposed by this class has the following function signature:

  public delegate void OrientationChangedCallback (float aspectRatio)

event OrientationChangedCallback OnOrientationChanged

This is called when the aspect ratio is updated. The new aspect ratio is passed in.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox