@Override public void log (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[info] " + tag + ": " + message)); exception.printStackTrace(); }
/** * @return the major part of the running OS version. */ public static int getMajorSystemVersion() { if (majorSystemVersion == 0) fetchSystemVersion(); // Lazily fetch the device's system version. return majorSystemVersion; } /**
@Override public void invoke(NSNotification notification) { AVCaptureSessionInterruptionReason reason = AVCaptureSessionInterruptionReason.Unavailable; if (Foundation.getMajorSystemVersion() >= 9) { NSDictionary<?, ?> data = notification.getUserInfo(); int value = data.getInt(NotificationInterruptionReasonKey(), 0); if (value != 0) { reason = AVCaptureSessionInterruptionReason.valueOf(value); } } block.invoke((AVCaptureSession)notification.getObject(), reason); } });
public NSCharacterSet getExemplarCharacterSet() { if (Foundation.getMajorSystemVersion() >= 10) { return getExemplarCharacterSet0(); } else { NSCharacterSet val = (NSCharacterSet)getComponent(NSLocaleComponent.ExemplarCharacterSet); return val; } } public String getCollationIdentifier() {
public NSCharacterSet getExemplarCharacterSet() { if (Foundation.getMajorSystemVersion() >= 10) { return getExemplarCharacterSet0(); } else { NSCharacterSet val = (NSCharacterSet)getComponent(NSLocaleComponent.ExemplarCharacterSet); return val; } } public String getCollationIdentifier() {
@Override public void error (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[error] " + tag + ": " + message)); exception.printStackTrace(); }
/** * @return the minor part of the running OS version. */ public static int getMinorSystemVersion() { if (majorSystemVersion == 0) fetchSystemVersion(); // Lazily fetch the device's system version. return minorSystemVersion; } /**
public String getCountryCode() { if (Foundation.getMajorSystemVersion() >= 10) { return getCountryCode0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CountryCode); return val.toString(); } } public String getScriptCode() {
@Override public void error (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[error] " + tag + ": " + message)); exception.printStackTrace(); }
/** * @return the patch part of the running OS version. */ public static int getPatchSystemVersion() { if (majorSystemVersion == 0) fetchSystemVersion(); // Lazily fetch the device's system version. return patchSystemVersion; }
/** * @since Available in iOS 4.0 and later. */ public String getQuotationBeginDelimiter() { if (Foundation.getMajorSystemVersion() >= 10) { return getQuotationBeginDelimiter0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.QuotationBeginDelimiterKey); return val.toString(); } } /**
@Override public void debug (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[debug] " + tag + ": " + message)); exception.printStackTrace(); } }
/** * Cached convenience method for {@link UIDevice#getSystemVersion()}. * @return the OS version that this app is running on. */ public static String getSystemVersionString() { if (majorSystemVersion == 0) fetchSystemVersion(); // Lazily fetch the device's system version. return systemVersionString; } /**
/** * @since Available in iOS 4.0 and later. */ public String getAlternateQuotationEndDelimiter() { if (Foundation.getMajorSystemVersion() >= 10) { return getAlternateQuotationEndDelimiter0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.AlternateQuotationEndDelimiterKey); return val.toString(); } } /*<methods>*/
@Override public void debug (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[debug] " + tag + ": " + message)); exception.printStackTrace(); } }
/** * @return the major part of the running OS version. */ public static int getMajorSystemVersion() { if (majorSystemVersion == 0) fetchSystemVersion(); // Lazily fetch the device's system version. return majorSystemVersion; } /**
public String getLanguageCode() { if (Foundation.getMajorSystemVersion() >= 10) { return getLanguageCode0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.LanguageCode); return val.toString(); } } public String getCountryCode() {
@Override public void log (String tag, String message, Throwable exception) { Foundation.log("%@", new NSString("[info] " + tag + ": " + message)); exception.printStackTrace(); }
/** * Cached convenience method for {@link UIDevice#getSystemVersion()}. * @return the OS version that this app is running on. */ public static String getSystemVersionString() { if (majorSystemVersion == 0) fetchSystemVersion(); // Lazily fetch the device's system version. return systemVersionString; } /**
/** * @since Available in iOS 4.0 and later. */ public String getQuotationBeginDelimiter() { if (Foundation.getMajorSystemVersion() >= 10) { return getQuotationBeginDelimiter0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.QuotationBeginDelimiterKey); return val.toString(); } } /**