@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() {
public String getCountryCode() { if (Foundation.getMajorSystemVersion() >= 10) { return getCountryCode0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CountryCode); return val.toString(); } } public String getScriptCode() {
/** * @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(); } } /**
/** * @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>*/
public String getLanguageCode() { if (Foundation.getMajorSystemVersion() >= 10) { return getLanguageCode0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.LanguageCode); return val.toString(); } } public String getCountryCode() {
/** * @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(); } } /**
public String getScriptCode() { if (Foundation.getMajorSystemVersion() >= 10) { return getScriptCode0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.ScriptCode); return val.toString(); } } public String getVariantCode() {
public String getCollationIdentifier() { if (Foundation.getMajorSystemVersion() >= 10) { return getCollationIdentifier0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CollationIdentifier); return val.toString(); } } public boolean usesMetricSystem() {
public String getCurrencySymbol() { if (Foundation.getMajorSystemVersion() >= 10) { return getCurrencySymbol0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CurrencySymbol); return val.toString(); } } public String getCurrencyCode() {
/** * @since Available in iOS 4.0 and later. */ public String getCollatorIdentifier() { if (Foundation.getMajorSystemVersion() >= 10) { return getCollatorIdentifier0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CollatorIdentifier); return val.toString(); } } /**
/** * @since Available in iOS 4.0 and later. */ public String getQuotationEndDelimiter() { if (Foundation.getMajorSystemVersion() >= 10) { return getQuotationEndDelimiter0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.QuotationEndDelimiterKey); return val.toString(); } } /**
/** * @since Available in iOS 4.0 and later. */ public String getAlternateQuotationBeginDelimiter() { if (Foundation.getMajorSystemVersion() >= 10) { return getAlternateQuotationBeginDelimiter0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.AlternateQuotationBeginDelimiterKey); return val.toString(); } } /**
/** * @since Available in iOS 4.0 and later. */ public String getCollatorIdentifier() { if (Foundation.getMajorSystemVersion() >= 10) { return getCollatorIdentifier0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CollatorIdentifier); return val.toString(); } } /**
public String getDecimalSeparator() { if (Foundation.getMajorSystemVersion() >= 10) { return getDecimalSeparator0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.DecimalSeparator); return val.toString(); } } public String getGroupingSeparator() {
public String getCountryCode() { if (Foundation.getMajorSystemVersion() >= 10) { return getCountryCode0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CountryCode); return val.toString(); } } public String getScriptCode() {
public String getCollationIdentifier() { if (Foundation.getMajorSystemVersion() >= 10) { return getCollationIdentifier0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CollationIdentifier); return val.toString(); } } public boolean usesMetricSystem() {
public String getCurrencySymbol() { if (Foundation.getMajorSystemVersion() >= 10) { return getCurrencySymbol0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CurrencySymbol); return val.toString(); } } public String getCurrencyCode() {
public String getCurrencyCode() { if (Foundation.getMajorSystemVersion() >= 10) { return getCurrencyCode0(); } else { NSString val = (NSString)getComponent(NSLocaleComponent.CurrencyCode); return val.toString(); } } /**