Package apple.uikit.protocol
Interface UITextDocumentProxy
-
- All Superinterfaces:
UIKeyInput,UITextInputTraits
public interface UITextDocumentProxy extends UIKeyInput
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadjustTextPositionByCharacterOffset(long offset)@Nullable java.lang.StringdocumentContextAfterInput()@Nullable java.lang.StringdocumentContextBeforeInput()@NotNull NSUUIDdocumentIdentifier()API-Since: 11.0@Nullable UITextInputModedocumentInputMode()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.@Nullable java.lang.StringselectedText()API-Since: 11.0voidsetMarkedTextSelectedRange(@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.voidunmarkText()Unmark the currently marked text.-
Methods inherited from interface apple.uikit.protocol.UIKeyInput
deleteBackward, hasText, insertText
-
Methods inherited from interface apple.uikit.protocol.UITextInputTraits
autocapitalizationType, autocorrectionType, enablesReturnKeyAutomatically, inlinePredictionType, isSecureTextEntry, keyboardAppearance, keyboardType, passwordRules, returnKeyType, setAutocapitalizationType, setAutocorrectionType, setEnablesReturnKeyAutomatically, setInlinePredictionType, setKeyboardAppearance, setKeyboardType, setPasswordRules, setReturnKeyType, setSecureTextEntry, setSmartDashesType, setSmartInsertDeleteType, setSmartQuotesType, setSpellCheckingType, setTextContentType, smartDashesType, smartInsertDeleteType, smartQuotesType, spellCheckingType, textContentType
-
-
-
-
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
-
-