Package apple.uikit

Class UITextChecker

  • All Implemented Interfaces:
    NSObject

    public class UITextChecker
    extends NSObject
    A UITextChecker object is used by a client (e.g. a document in an application) to check a given NSString. Generally one UITextChecker instance should be created per document. Multiple related pieces of text may share a single UITextChecker instance, if they are intended to share ignored words and other similar state.
    • Constructor Detail

      • UITextChecker

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • availableLanguages

        public static NSArray<java.lang.String> availableLanguages()
        Entries in the availableLanguages list are all available spellchecking languages in user preference order, usually language abbreviations such as en_US.
      • cancelPreviousPerformRequestsWithTarget

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

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

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

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

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

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

        public static boolean hasLearnedWord​(java.lang.String word)
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • learnWord

        public static void learnWord​(java.lang.String word)
        These allow clients to programmatically instruct the checker to learn and unlearn words, and to determine whether a word has been learned (and hence can potentially be unlearned).
      • new_objc

        public static java.lang.Object new_objc()
      • 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()
      • unlearnWord

        public static void unlearnWord​(java.lang.String word)
      • version_static

        public static long version_static()
      • completionsForPartialWordRangeInStringLanguage

        public NSArray<java.lang.String> completionsForPartialWordRangeInStringLanguage​(NSRange range,
                                                                                        java.lang.String string,
                                                                                        java.lang.String language)
        Returns an array of strings, in the order in which they should be presented, representing complete words that the user might be trying to type when starting by typing the partial word at the given range in the given string.
      • guessesForWordRangeInStringLanguage

        public NSArray<java.lang.String> guessesForWordRangeInStringLanguage​(NSRange range,
                                                                             java.lang.String string,
                                                                             java.lang.String language)
        Returns an array of strings, in the order in which they should be presented, representing guesses for words that might have been intended in place of the misspelled word at the given range in the given string.
      • ignoreWord

        public void ignoreWord​(java.lang.String wordToIgnore)
        Methods for dealing with ignored words.
      • ignoredWords

        public NSArray<java.lang.String> ignoredWords()
      • rangeOfMisspelledWordInStringRangeStartingAtWrapLanguage

        public NSRange rangeOfMisspelledWordInStringRangeStartingAtWrapLanguage​(java.lang.String stringToCheck,
                                                                                NSRange range,
                                                                                long startingOffset,
                                                                                boolean wrapFlag,
                                                                                java.lang.String language)
        Initiates a spell-check of a string. Returns the range of the first misspelled word, or {NSNotFound, 0} if none is found. Checking is limited to the range specified, and starts at the specified offset (which should lie within the range), but if wrapFlag is YES then it will check from the beginning of the range if no misspelling is found between startingOffset and the end of the range.
      • setIgnoredWords

        public void setIgnoredWords​(NSArray<java.lang.String> value)