public static /*<name>*/UIInterfaceOrientation/*</name>*/ valueOf(long n) { for (/*<name>*/UIInterfaceOrientation/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/UIInterfaceOrientation/*</name>*/.class.getName()); } }
@Override public UIInterfaceOrientationMask getSupportedInterfaceOrientations () { long mask = 0; if (app.config.orientationLandscape) { mask |= ((1 << UIInterfaceOrientation.LandscapeLeft.value()) | (1 << UIInterfaceOrientation.LandscapeRight.value())); } if (app.config.orientationPortrait) { mask |= ((1 << UIInterfaceOrientation.Portrait.value()) | (1 << UIInterfaceOrientation.PortraitUpsideDown.value())); } return new UIInterfaceOrientationMask(mask); }
@Override public void invoke(NSNotification a) { NSNumber val = (NSNumber)a.getUserInfo().get(StatusBarOrientationUserInfoKey()); block.invoke(UIInterfaceOrientation.valueOf(val.intValue())); } });
@Override public void invoke(NSNotification a) { NSNumber val = (NSNumber)a.getUserInfo().get(StatusBarOrientationUserInfoKey()); block.invoke(UIInterfaceOrientation.valueOf(val.intValue())); } });
@Override public void invoke(NSNotification a) { NSNumber val = (NSNumber)a.getUserInfo().get(StatusBarOrientationUserInfoKey()); block.invoke(UIInterfaceOrientation.valueOf(val.intValue())); } });
public static /*<name>*/UIInterfaceOrientation/*</name>*/ valueOf(long n) { for (/*<name>*/UIInterfaceOrientation/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/UIInterfaceOrientation/*</name>*/.class.getName()); } }
@Override public UIInterfaceOrientationMask getSupportedInterfaceOrientations () { long mask = 0; if (app.config.orientationLandscape) { mask |= ((1 << UIInterfaceOrientation.LandscapeLeft.value()) | (1 << UIInterfaceOrientation.LandscapeRight.value())); } if (app.config.orientationPortrait) { mask |= ((1 << UIInterfaceOrientation.Portrait.value()) | (1 << UIInterfaceOrientation.PortraitUpsideDown.value())); } return new UIInterfaceOrientationMask(mask); }
@Override public void invoke(NSNotification a) { NSNumber val = (NSNumber)a.getUserInfo().get(StatusBarOrientationUserInfoKey()); block.invoke(UIInterfaceOrientation.valueOf(val.intValue())); } });
public static /*<name>*/UIInterfaceOrientation/*</name>*/ valueOf(long n) { for (/*<name>*/UIInterfaceOrientation/*</name>*/ v : values()) { if (v.n == n) { return v; } } throw new IllegalArgumentException("No constant with value " + n + " found in " + /*<name>*/UIInterfaceOrientation/*</name>*/.class.getName()); } }
@Override public UIInterfaceOrientationMask getSupportedInterfaceOrientations () { long mask = 0; if (app.config.orientationLandscape) { mask |= ((1 << UIInterfaceOrientation.LandscapeLeft.value()) | (1 << UIInterfaceOrientation.LandscapeRight.value())); } if (app.config.orientationPortrait) { mask |= ((1 << UIInterfaceOrientation.Portrait.value()) | (1 << UIInterfaceOrientation.PortraitUpsideDown.value())); } return new UIInterfaceOrientationMask(mask); }
@Override public void invoke(NSNotification a) { NSNumber val = (NSNumber)a.getUserInfo().get(StatusBarOrientationUserInfoKey()); block.invoke(UIInterfaceOrientation.valueOf(val.intValue())); } });
@Override public void invoke(NSNotification a) { NSNumber val = (NSNumber)a.getUserInfo().get(StatusBarOrientationUserInfoKey()); block.invoke(UIInterfaceOrientation.valueOf(val.intValue())); } });