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)java.lang.StringdocumentContextAfterInput()java.lang.StringdocumentContextBeforeInput()NSUUIDdocumentIdentifier()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.java.lang.StringselectedText()voidsetMarkedTextSelectedRange(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, isSecureTextEntry, keyboardAppearance, keyboardType, passwordRules, returnKeyType, setAutocapitalizationType, setAutocorrectionType, setEnablesReturnKeyAutomatically, setKeyboardAppearance, setKeyboardType, setPasswordRules, setReturnKeyType, setSecureTextEntry, setSmartDashesType, setSmartInsertDeleteType, setSmartQuotesType, setSpellCheckingType, setTextContentType, smartDashesType, smartInsertDeleteType, smartQuotesType, spellCheckingType, textContentType
-
-
-
-
Method Detail
-
adjustTextPositionByCharacterOffset
void adjustTextPositionByCharacterOffset(long offset)
-
documentContextAfterInput
java.lang.String documentContextAfterInput()
-
documentContextBeforeInput
java.lang.String documentContextBeforeInput()
-
documentInputMode
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.
-
documentIdentifier
NSUUID documentIdentifier()
-
selectedText
java.lang.String selectedText()
-
setMarkedTextSelectedRange
void setMarkedTextSelectedRange(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.
-
unmarkText
void unmarkText()
Unmark the currently marked text.
-
-