public class NSLocale extends NSObject implements NSSecureCoding
Modifier and Type | Method and Description |
---|---|
String |
countryCode()
Get the country's code
|
static NSLocale |
currentLocale()
Returns user's current logical locale.
|
String |
languageCode()
Get the language's code
|
String |
localeIdentifier()
Get the locale's identifier.
|
static List<String> |
preferredLanguages()
Returns a list with the preferred user's languages in a descending order.
|
static NSLocale |
systemLocale()
Returns system's default locale.
|
String |
variantCode()
Get the locale's variant code
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supportsSecureCoding
public NSLocale(String identifier)
public static List<String> preferredLanguages()
public static NSLocale systemLocale()
public static NSLocale currentLocale()
public String localeIdentifier()
public String countryCode()
public String languageCode()
public String variantCode()
Copyright © 2020. All rights reserved.