Interface UITextDocumentProxy

    • Method Detail

      • adjustTextPositionByCharacterOffset

        void adjustTextPositionByCharacterOffset​(long offset)
      • documentContextAfterInput

        @Nullable
        @Nullable java.lang.String documentContextAfterInput()
      • documentContextBeforeInput

        @Nullable
        @Nullable java.lang.String documentContextBeforeInput()
      • documentInputMode

        @Nullable
        @Nullable UITextInputMode documentInputMode()
        An app can store UITextInputMode in its document context, when user switches to the document, the host will pass the inputMode as documentInputMode to the UIInputViewController, which can switch to the inputMode and set primaryLanguage if it supports it. API-Since: 10.0
      • documentIdentifier

        @NotNull
        @NotNull NSUUID documentIdentifier()
        API-Since: 11.0
      • selectedText

        @Nullable
        @Nullable java.lang.String selectedText()
        API-Since: 11.0
      • setMarkedTextSelectedRange

        void setMarkedTextSelectedRange​(@NotNull
                                        @NotNull java.lang.String markedText,
                                        NSRange selectedRange)
        Setting marked text either replaces the existing marked text or, if none is present, inserts it in place of the current input location. API-Since: 13.0
      • unmarkText

        void unmarkText()
        Unmark the currently marked text. API-Since: 13.0