private void OnDeviceOrientationChanged(int orientation) { var deviceOrientation = ConvertFromiOSOrientation(orientation); if (deviceOrientation != m_deviceOrientation) { PlatformEvents.SendDeviceOrientationEvent(this, new DeviceOrientationEvent((int)deviceOrientation)); m_deviceOrientation = deviceOrientation; } }
private void OnDeviceOrientationChanged(int orientation) { var deviceOrientation = ConvertFromAndroidOrientation(orientation); if (deviceOrientation != m_DeviceOrientation) { PlatformEvents.SendDeviceOrientationEvent(this, new DeviceOrientationEvent((int)deviceOrientation)); if ((deviceOrientation & m_ScreenOrientationMask) != 0) { AndroidNativeCalls.setOrientation(orientation); } m_DeviceOrientation = deviceOrientation; } }