Package org.robovm.apple.foundation
Class NSLocale
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSLocale
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class NSLocale extends NSObject implements NSSecureCoding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSLocale.Notifications
static class
NSLocale.NSLocalePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSLocale(java.lang.String string)
NSLocale(java.util.Locale locale)
NSLocale(NSCoder decoder)
protected
NSLocale(NSObject.Handle h, long handle)
protected
NSLocale(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NSString
CurrentLocaleDidChangeNotification()
void
encode(NSCoder coder)
java.lang.String
getAlternateQuotationBeginDelimiter()
java.lang.String
getAlternateQuotationEndDelimiter()
static NSLocale
getAutoupdatingCurrentLocale()
static java.util.List<java.lang.String>
getAvailableLocaleIdentifiers()
java.lang.String
getCalendarIdentifier()
static java.lang.String
getCanonicalLanguageIdentifier(java.lang.String string)
static java.lang.String
getCanonicalLocaleIdentifier(java.lang.String string)
static NSLocaleLanguageDirection
getCharacterDirection(java.lang.String isoLangCode)
java.lang.String
getCollationIdentifier()
java.lang.String
getCollatorIdentifier()
static java.util.List<java.lang.String>
getCommonISOCurrencyCodes()
NSObject
getComponent(NSLocaleComponent key)
java.lang.String
getComponentDisplayName(NSLocaleComponent key, NSObject value)
static NSLocaleComponents
getComponentsFromLocaleIdentifier(java.lang.String string)
java.lang.String
getCountryCode()
java.lang.String
getCurrencyCode()
java.lang.String
getCurrencySymbol()
static NSLocale
getCurrentLocale()
java.lang.String
getDecimalSeparator()
NSCharacterSet
getExemplarCharacterSet()
java.lang.String
getGroupingSeparator()
static java.util.List<java.lang.String>
getISOCountryCodes()
static java.util.List<java.lang.String>
getISOCurrencyCodes()
static java.util.List<java.lang.String>
getISOLanguageCodes()
java.lang.String
getLanguageCode()
static NSLocaleLanguageDirection
getLineDirection(java.lang.String isoLangCode)
java.lang.String
getLocaleIdentifier()
static java.lang.String
getLocaleIdentifierFromComponents(NSLocaleComponents dict)
static java.lang.String
getLocaleIdentifierFromWindowsLocaleCode(int lcid)
java.lang.String
getMeasurementSystem()
static java.util.List<java.lang.String>
getPreferredLanguages()
java.lang.String
getQuotationBeginDelimiter()
java.lang.String
getQuotationEndDelimiter()
java.lang.String
getScriptCode()
static NSLocale
getSystemLocale()
java.lang.String
getVariantCode()
static int
getWindowsLocaleCodeFromLocaleIdentifier(java.lang.String localeIdentifier)
protected long
init(java.lang.String string)
protected long
init(NSCoder decoder)
static boolean
supportsSecureCoding()
java.util.Locale
toLocale()
boolean
usesMetricSystem()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSLocale
protected NSLocale(NSObject.Handle h, long handle)
-
NSLocale
protected NSLocale(NSObject.SkipInit skipInit)
-
NSLocale
public NSLocale(java.lang.String string)
-
NSLocale
public NSLocale(NSCoder decoder)
-
NSLocale
public NSLocale(java.util.Locale locale)
-
-
Method Detail
-
getCalendarIdentifier
public java.lang.String getCalendarIdentifier()
- Since:
- Available in iOS 10.0 and later.
-
getAutoupdatingCurrentLocale
public static NSLocale getAutoupdatingCurrentLocale()
- Since:
- Available in iOS 2.0 and later.
-
getCurrentLocale
public static NSLocale getCurrentLocale()
-
getSystemLocale
public static NSLocale getSystemLocale()
-
getAvailableLocaleIdentifiers
public static java.util.List<java.lang.String> getAvailableLocaleIdentifiers()
-
getISOLanguageCodes
public static java.util.List<java.lang.String> getISOLanguageCodes()
-
getISOCountryCodes
public static java.util.List<java.lang.String> getISOCountryCodes()
-
getISOCurrencyCodes
public static java.util.List<java.lang.String> getISOCurrencyCodes()
-
getCommonISOCurrencyCodes
public static java.util.List<java.lang.String> getCommonISOCurrencyCodes()
- Since:
- Available in iOS 2.0 and later.
-
getPreferredLanguages
public static java.util.List<java.lang.String> getPreferredLanguages()
- Since:
- Available in iOS 2.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
toLocale
public java.util.Locale toLocale()
-
getLocaleIdentifier
public java.lang.String getLocaleIdentifier()
-
getLanguageCode
public java.lang.String getLanguageCode()
-
getCountryCode
public java.lang.String getCountryCode()
-
getScriptCode
public java.lang.String getScriptCode()
-
getVariantCode
public java.lang.String getVariantCode()
-
getExemplarCharacterSet
public NSCharacterSet getExemplarCharacterSet()
-
getCollationIdentifier
public java.lang.String getCollationIdentifier()
-
usesMetricSystem
public boolean usesMetricSystem()
-
getMeasurementSystem
public java.lang.String getMeasurementSystem()
-
getDecimalSeparator
public java.lang.String getDecimalSeparator()
-
getGroupingSeparator
public java.lang.String getGroupingSeparator()
-
getCurrencySymbol
public java.lang.String getCurrencySymbol()
-
getCurrencyCode
public java.lang.String getCurrencyCode()
-
getCollatorIdentifier
public java.lang.String getCollatorIdentifier()
- Since:
- Available in iOS 4.0 and later.
-
getQuotationBeginDelimiter
public java.lang.String getQuotationBeginDelimiter()
- Since:
- Available in iOS 4.0 and later.
-
getQuotationEndDelimiter
public java.lang.String getQuotationEndDelimiter()
- Since:
- Available in iOS 4.0 and later.
-
getAlternateQuotationBeginDelimiter
public java.lang.String getAlternateQuotationBeginDelimiter()
- Since:
- Available in iOS 4.0 and later.
-
getAlternateQuotationEndDelimiter
public java.lang.String getAlternateQuotationEndDelimiter()
- Since:
- Available in iOS 4.0 and later.
-
CurrentLocaleDidChangeNotification
public static NSString CurrentLocaleDidChangeNotification()
- Since:
- Available in iOS 2.0 and later.
-
getComponent
public NSObject getComponent(NSLocaleComponent key)
-
getComponentDisplayName
public java.lang.String getComponentDisplayName(NSLocaleComponent key, NSObject value)
-
init
protected long init(java.lang.String string)
-
getComponentsFromLocaleIdentifier
public static NSLocaleComponents getComponentsFromLocaleIdentifier(java.lang.String string)
-
getLocaleIdentifierFromComponents
public static java.lang.String getLocaleIdentifierFromComponents(NSLocaleComponents dict)
-
getCanonicalLocaleIdentifier
public static java.lang.String getCanonicalLocaleIdentifier(java.lang.String string)
-
getCanonicalLanguageIdentifier
public static java.lang.String getCanonicalLanguageIdentifier(java.lang.String string)
-
getLocaleIdentifierFromWindowsLocaleCode
public static java.lang.String getLocaleIdentifierFromWindowsLocaleCode(int lcid)
- Since:
- Available in iOS 4.0 and later.
-
getWindowsLocaleCodeFromLocaleIdentifier
public static int getWindowsLocaleCodeFromLocaleIdentifier(java.lang.String localeIdentifier)
- Since:
- Available in iOS 4.0 and later.
-
getCharacterDirection
public static NSLocaleLanguageDirection getCharacterDirection(java.lang.String isoLangCode)
- Since:
- Available in iOS 4.0 and later.
-
getLineDirection
public static NSLocaleLanguageDirection getLineDirection(java.lang.String isoLangCode)
- Since:
- Available in iOS 4.0 and later.
-
init
protected long init(NSCoder decoder)
-
-