Class NSLocale

    • Constructor Detail

      • NSLocale

        protected NSLocale​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • ISOCountryCodes

        @NotNull
        public static @NotNull NSArray<java.lang.String> ISOCountryCodes()
      • ISOCurrencyCodes

        @NotNull
        public static @NotNull NSArray<java.lang.String> ISOCurrencyCodes()
      • ISOLanguageCodes

        @NotNull
        public static @NotNull NSArray<java.lang.String> ISOLanguageCodes()
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static NSLocale alloc()
      • allocWithZone

        public static NSLocale allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • autoupdatingCurrentLocale

        @NotNull
        public static @NotNull NSLocale autoupdatingCurrentLocale()
        generally you should use this property API-Since: 2.0
      • availableLocaleIdentifiers

        @NotNull
        public static @NotNull NSArray<java.lang.String> availableLocaleIdentifiers()
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • canonicalLanguageIdentifierFromString

        @NotNull
        public static @NotNull java.lang.String canonicalLanguageIdentifierFromString​(@NotNull
                                                                                      @NotNull java.lang.String string)
      • canonicalLocaleIdentifierFromString

        @NotNull
        public static @NotNull java.lang.String canonicalLocaleIdentifierFromString​(@NotNull
                                                                                    @NotNull java.lang.String string)
      • characterDirectionForLanguage

        public static long characterDirectionForLanguage​(@NotNull
                                                         @NotNull java.lang.String isoLangCode)
        API-Since: 4.0
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • commonISOCurrencyCodes

        @NotNull
        public static @NotNull NSArray<java.lang.String> commonISOCurrencyCodes()
        API-Since: 2.0
      • componentsFromLocaleIdentifier

        @NotNull
        public static @NotNull NSDictionary<java.lang.String,​java.lang.String> componentsFromLocaleIdentifier​(@NotNull
                                                                                                                    @NotNull java.lang.String string)
      • currentLocale

        @NotNull
        public static @NotNull NSLocale currentLocale()
        an object representing the user's current locale
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • lineDirectionForLanguage

        public static long lineDirectionForLanguage​(@NotNull
                                                    @NotNull java.lang.String isoLangCode)
        API-Since: 4.0
      • localeIdentifierFromComponents

        @NotNull
        public static @NotNull java.lang.String localeIdentifierFromComponents​(@NotNull
                                                                               @NotNull NSDictionary<java.lang.String,​java.lang.String> dict)
      • localeIdentifierFromWindowsLocaleCode

        @Nullable
        public static @Nullable java.lang.String localeIdentifierFromWindowsLocaleCode​(int lcid)
        API-Since: 4.0
      • localeWithLocaleIdentifier

        public static NSLocale localeWithLocaleIdentifier​(@NotNull
                                                          @NotNull java.lang.String ident)
        API-Since: 4.0
      • new_objc

        public static NSLocale new_objc()
      • preferredLanguages

        @NotNull
        public static @NotNull NSArray<java.lang.String> preferredLanguages()
        note that this list does not indicate what language the app is actually running in; the NSBundle.mainBundle object determines that at launch and knows that information API-Since: 2.0
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • systemLocale

        @NotNull
        public static @NotNull NSLocale systemLocale()
        the default generic root locale with little localization
      • version_static

        public static long version_static()
      • windowsLocaleCodeFromLocaleIdentifier

        public static int windowsLocaleCodeFromLocaleIdentifier​(@NotNull
                                                                @NotNull java.lang.String localeIdentifier)
        API-Since: 4.0
      • alternateQuotationBeginDelimiter

        @NotNull
        public @NotNull java.lang.String alternateQuotationBeginDelimiter()
        API-Since: 10.0
      • alternateQuotationEndDelimiter

        @NotNull
        public @NotNull java.lang.String alternateQuotationEndDelimiter()
        API-Since: 10.0
      • calendarIdentifier

        @NotNull
        public @NotNull java.lang.String calendarIdentifier()
        API-Since: 10.0
      • collationIdentifier

        @Nullable
        public @Nullable java.lang.String collationIdentifier()
        API-Since: 10.0
      • collatorIdentifier

        @NotNull
        public @NotNull java.lang.String collatorIdentifier()
        API-Since: 10.0
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • countryCode

        @Deprecated
        @Nullable
        public @Nullable java.lang.String countryCode()
        Deprecated.
        API-Since: 10.0 Deprecated-Since: 100000.0
      • currencyCode

        @Nullable
        public @Nullable java.lang.String currencyCode()
        API-Since: 10.0
      • currencySymbol

        @NotNull
        public @NotNull java.lang.String currencySymbol()
        API-Since: 10.0
      • decimalSeparator

        @NotNull
        public @NotNull java.lang.String decimalSeparator()
        API-Since: 10.0
      • displayNameForKeyValue

        @Nullable
        public @Nullable java.lang.String displayNameForKeyValue​(@NotNull
                                                                 @NotNull java.lang.String key,
                                                                 @NotNull
                                                                 @NotNull java.lang.Object value)
      • exemplarCharacterSet

        @NotNull
        public @NotNull NSCharacterSet exemplarCharacterSet()
        API-Since: 10.0
      • groupingSeparator

        @NotNull
        public @NotNull java.lang.String groupingSeparator()
        API-Since: 10.0
      • initWithLocaleIdentifier

        public NSLocale initWithLocaleIdentifier​(@NotNull
                                                 @NotNull java.lang.String string)
      • languageCode

        @NotNull
        public @NotNull java.lang.String languageCode()
        API-Since: 10.0
      • localeIdentifier

        @NotNull
        public @NotNull java.lang.String localeIdentifier()
        same as NSLocaleIdentifier
      • localizedStringForCalendarIdentifier

        @Nullable
        public @Nullable java.lang.String localizedStringForCalendarIdentifier​(@NotNull
                                                                               @NotNull java.lang.String calendarIdentifier)
        API-Since: 10.0
      • localizedStringForCollationIdentifier

        @Nullable
        public @Nullable java.lang.String localizedStringForCollationIdentifier​(@NotNull
                                                                                @NotNull java.lang.String collationIdentifier)
        API-Since: 10.0
      • localizedStringForCollatorIdentifier

        @Nullable
        public @Nullable java.lang.String localizedStringForCollatorIdentifier​(@NotNull
                                                                               @NotNull java.lang.String collatorIdentifier)
        API-Since: 10.0
      • localizedStringForCountryCode

        @Nullable
        public @Nullable java.lang.String localizedStringForCountryCode​(@NotNull
                                                                        @NotNull java.lang.String countryCode)
        API-Since: 10.0
      • localizedStringForCurrencyCode

        @Nullable
        public @Nullable java.lang.String localizedStringForCurrencyCode​(@NotNull
                                                                         @NotNull java.lang.String currencyCode)
        API-Since: 10.0
      • localizedStringForLanguageCode

        @Nullable
        public @Nullable java.lang.String localizedStringForLanguageCode​(@NotNull
                                                                         @NotNull java.lang.String languageCode)
        API-Since: 10.0
      • localizedStringForLocaleIdentifier

        @NotNull
        public @NotNull java.lang.String localizedStringForLocaleIdentifier​(@NotNull
                                                                            @NotNull java.lang.String localeIdentifier)
        API-Since: 10.0
      • localizedStringForScriptCode

        @Nullable
        public @Nullable java.lang.String localizedStringForScriptCode​(@NotNull
                                                                       @NotNull java.lang.String scriptCode)
        API-Since: 10.0
      • localizedStringForVariantCode

        @Nullable
        public @Nullable java.lang.String localizedStringForVariantCode​(@NotNull
                                                                        @NotNull java.lang.String variantCode)
        API-Since: 10.0
      • objectForKey

        @Nullable
        public @Nullable java.lang.Object objectForKey​(@NotNull
                                                       @NotNull java.lang.String key)
      • quotationBeginDelimiter

        @NotNull
        public @NotNull java.lang.String quotationBeginDelimiter()
        API-Since: 10.0
      • quotationEndDelimiter

        @NotNull
        public @NotNull java.lang.String quotationEndDelimiter()
        API-Since: 10.0
      • scriptCode

        @Nullable
        public @Nullable java.lang.String scriptCode()
        API-Since: 10.0
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • usesMetricSystem

        public boolean usesMetricSystem()
        API-Since: 10.0
      • variantCode

        @Nullable
        public @Nullable java.lang.String variantCode()
        API-Since: 10.0
      • languageIdentifier

        @NotNull
        public @NotNull java.lang.String languageIdentifier()
        Returns the identifier for the language part of the locale. For example, returns "en-US" for "en_US@rg=gbzzzz" locale. API-Since: 17.0
      • regionCode

        @Nullable
        public @Nullable java.lang.String regionCode()
        Returns the region code of the locale. If the `rg` subtag is present, the value of the subtag will be used. For example, returns "GB" for "en_US@rg=gbzzzz" locale. If the `localeIdentifier` doesn’t contain a region, returns `nil`. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.