Package org.robovm.apple.uikit
Class UITextInputAdapter
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UITextInputTraitsAdapter
-
- org.robovm.apple.uikit.UIKeyInputAdapter
-
- org.robovm.apple.uikit.UITextInputAdapter
-
- All Implemented Interfaces:
NSObjectProtocol
,UIKeyInput
,UITextInput
,UITextInputTraits
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
UITextDraggableAdapter
,UITextDroppableAdapter
public class UITextInputAdapter extends UIKeyInputAdapter implements UITextInput
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Constructor Description UITextInputAdapter()
-
Method Summary
-
Methods inherited from class org.robovm.apple.uikit.UIKeyInputAdapter
deleteBackward, hasText, insertText
-
Methods inherited from class org.robovm.apple.uikit.UITextInputTraitsAdapter
enablesReturnKeyAutomatically, getAutocapitalizationType, getAutocorrectionType, getKeyboardAppearance, getKeyboardType, getPasswordRules, getReturnKeyType, getSmartDashesType, getSmartInsertDeleteType, getSmartQuotesType, getSpellCheckingType, getTextContentType, isSecureTextEntry, setAutocapitalizationType, setAutocorrectionType, setEnablesReturnKeyAutomatically, setKeyboardAppearance, setKeyboardType, setPasswordRules, setReturnKeyType, setSecureTextEntry, setSmartDashesType, setSmartInsertDeleteType, setSmartQuotesType, setSpellCheckingType, setTextContentType
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
Methods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Methods inherited from interface org.robovm.apple.uikit.UIKeyInput
deleteBackward, hasText, insertText
-
Methods inherited from interface org.robovm.apple.uikit.UITextInputTraits
enablesReturnKeyAutomatically, getAutocapitalizationType, getAutocorrectionType, getKeyboardAppearance, getKeyboardType, getPasswordRules, getReturnKeyType, getSmartDashesType, getSmartInsertDeleteType, getSmartQuotesType, getSpellCheckingType, getTextContentType, isSecureTextEntry, setAutocapitalizationType, setAutocorrectionType, setEnablesReturnKeyAutomatically, setKeyboardAppearance, setKeyboardType, setPasswordRules, setReturnKeyType, setSecureTextEntry, setSmartDashesType, setSmartInsertDeleteType, setSmartQuotesType, setSpellCheckingType, setTextContentType
-
-
-
-
Method Detail
-
getSelectedTextRange
public UITextRange getSelectedTextRange()
- Specified by:
getSelectedTextRange
in interfaceUITextInput
-
setSelectedTextRange
public void setSelectedTextRange(UITextRange v)
- Specified by:
setSelectedTextRange
in interfaceUITextInput
-
getMarkedTextRange
public UITextRange getMarkedTextRange()
- Specified by:
getMarkedTextRange
in interfaceUITextInput
-
getMarkedTextStyle
public UITextInputTextStyle getMarkedTextStyle()
- Specified by:
getMarkedTextStyle
in interfaceUITextInput
-
setMarkedTextStyle
public void setMarkedTextStyle(UITextInputTextStyle v)
- Specified by:
setMarkedTextStyle
in interfaceUITextInput
-
getBeginningOfDocument
public UITextPosition getBeginningOfDocument()
- Specified by:
getBeginningOfDocument
in interfaceUITextInput
-
getEndOfDocument
public UITextPosition getEndOfDocument()
- Specified by:
getEndOfDocument
in interfaceUITextInput
-
getInputDelegate
public UITextInputDelegate getInputDelegate()
- Specified by:
getInputDelegate
in interfaceUITextInput
-
setInputDelegate
public void setInputDelegate(UITextInputDelegate v)
- Specified by:
setInputDelegate
in interfaceUITextInput
-
getTokenizer
public UITextInputTokenizer getTokenizer()
- Specified by:
getTokenizer
in interfaceUITextInput
-
getTextInputView
public UIView getTextInputView()
- Specified by:
getTextInputView
in interfaceUITextInput
-
getSelectionAffinity
public UITextStorageDirection getSelectionAffinity()
- Specified by:
getSelectionAffinity
in interfaceUITextInput
-
setSelectionAffinity
public void setSelectionAffinity(UITextStorageDirection v)
- Specified by:
setSelectionAffinity
in interfaceUITextInput
-
getInsertDictationResultPlaceholder
public NSObject getInsertDictationResultPlaceholder()
- Specified by:
getInsertDictationResultPlaceholder
in interfaceUITextInput
-
getText
public java.lang.String getText(UITextRange range)
- Specified by:
getText
in interfaceUITextInput
-
replaceText
public void replaceText(UITextRange range, java.lang.String text)
- Specified by:
replaceText
in interfaceUITextInput
-
setMarkedText
public void setMarkedText(java.lang.String markedText, NSRange selectedRange)
- Specified by:
setMarkedText
in interfaceUITextInput
-
unmarkText
public void unmarkText()
- Specified by:
unmarkText
in interfaceUITextInput
-
getTextRange
public UITextRange getTextRange(UITextPosition fromPosition, UITextPosition toPosition)
- Specified by:
getTextRange
in interfaceUITextInput
-
getPosition
public UITextPosition getPosition(UITextPosition position, long offset)
- Specified by:
getPosition
in interfaceUITextInput
-
getPosition
public UITextPosition getPosition(UITextPosition position, UITextLayoutDirection direction, long offset)
- Specified by:
getPosition
in interfaceUITextInput
-
comparePositions
public NSComparisonResult comparePositions(UITextPosition position, UITextPosition other)
- Specified by:
comparePositions
in interfaceUITextInput
-
getOffset
public long getOffset(UITextPosition from, UITextPosition toPosition)
- Specified by:
getOffset
in interfaceUITextInput
-
getPosition
public UITextPosition getPosition(UITextRange range, UITextLayoutDirection direction)
- Specified by:
getPosition
in interfaceUITextInput
-
getCharacterRange
public UITextRange getCharacterRange(UITextPosition position, UITextLayoutDirection direction)
- Specified by:
getCharacterRange
in interfaceUITextInput
-
getBaseWritingDirection
public UITextWritingDirection getBaseWritingDirection(UITextPosition position, UITextStorageDirection direction)
- Specified by:
getBaseWritingDirection
in interfaceUITextInput
-
setBaseWritingDirection
public void setBaseWritingDirection(UITextWritingDirection writingDirection, UITextRange range)
- Specified by:
setBaseWritingDirection
in interfaceUITextInput
-
getFirstRect
public CGRect getFirstRect(UITextRange range)
- Specified by:
getFirstRect
in interfaceUITextInput
-
getCaretRect
public CGRect getCaretRect(UITextPosition position)
- Specified by:
getCaretRect
in interfaceUITextInput
-
getSelectionRects
public NSArray<UITextSelectionRect> getSelectionRects(UITextRange range)
- Specified by:
getSelectionRects
in interfaceUITextInput
- Since:
- Available in iOS 6.0 and later.
-
getClosestPosition
public UITextPosition getClosestPosition(CGPoint point)
- Specified by:
getClosestPosition
in interfaceUITextInput
-
getClosestPosition
public UITextPosition getClosestPosition(CGPoint point, UITextRange range)
- Specified by:
getClosestPosition
in interfaceUITextInput
-
getCharacterRange
public UITextRange getCharacterRange(CGPoint point)
- Specified by:
getCharacterRange
in interfaceUITextInput
-
shouldChangeText
public boolean shouldChangeText(UITextRange range, java.lang.String text)
- Specified by:
shouldChangeText
in interfaceUITextInput
- Since:
- Available in iOS 6.0 and later.
-
getTextStyling
public UITextInputTextStyle getTextStyling(UITextPosition position, UITextStorageDirection direction)
- Specified by:
getTextStyling
in interfaceUITextInput
-
getPosition
public UITextPosition getPosition(UITextRange range, long offset)
- Specified by:
getPosition
in interfaceUITextInput
-
getCharacterOffset
public long getCharacterOffset(UITextPosition position, UITextRange range)
- Specified by:
getCharacterOffset
in interfaceUITextInput
-
insertDictationResult
public void insertDictationResult(NSArray<UIDictationPhrase> dictationResult)
- Specified by:
insertDictationResult
in interfaceUITextInput
-
dictationRecordingDidEnd
public void dictationRecordingDidEnd()
- Specified by:
dictationRecordingDidEnd
in interfaceUITextInput
-
dictationRecognitionFailed
public void dictationRecognitionFailed()
- Specified by:
dictationRecognitionFailed
in interfaceUITextInput
-
getDictationResultPlaceholderFrame
public CGRect getDictationResultPlaceholderFrame(NSObject placeholder)
- Specified by:
getDictationResultPlaceholderFrame
in interfaceUITextInput
-
removeDictationResultPlaceholder
public void removeDictationResultPlaceholder(NSObject placeholder, boolean willInsertResult)
- Specified by:
removeDictationResultPlaceholder
in interfaceUITextInput
-
beginFloatingCursor
public void beginFloatingCursor(CGPoint point)
- Specified by:
beginFloatingCursor
in interfaceUITextInput
- Since:
- Available in iOS 9.0 and later.
-
updateFloatingCursor
public void updateFloatingCursor(CGPoint point)
- Specified by:
updateFloatingCursor
in interfaceUITextInput
- Since:
- Available in iOS 9.0 and later.
-
endFloatingCursor
public void endFloatingCursor()
- Specified by:
endFloatingCursor
in interfaceUITextInput
- Since:
- Available in iOS 9.0 and later.
-
-