_currentOrientation = UIDevice.get_CurrentDevice().get_Orientation().Value;
center.AddObserver(UIDevice.get_OrientationDidChangeNotification(),
new cli.System.Action$$00601_$$$_Lcli__MonoTouch__Foundation__NSNotification_$$$$_(new cli.System.Action$$00601_$$$_Lcli__MonoTouch__Foundation__NSNotification_$$$$_.Method() {
@Override
public void Invoke (NSNotification nf) {
UIDeviceOrientation orient = UIDevice.get_CurrentDevice().get_Orientation();
if (orient.Value == _currentOrientation) return; // NOOP
if (!((IOSPlatform)PlayN.platform()).supportedOrients().isSupported(orient)) {
return; // unsupported orientation, no rotation
}
_currentOrientation = orient.Value;