Package apple.uikit
Class UITextView
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIView
-
- apple.uikit.UIScrollView
-
- apple.uikit.UITextView
-
- All Implemented Interfaces:
NSCoding,NSObject,CALayerDelegate,UIAccessibilityIdentification,UIActivityItemsConfigurationProviding,UIAppearance,UIAppearanceContainer,UIContentSizeCategoryAdjusting,UICoordinateSpace,UIDynamicItem,UIFindInteractionDelegate,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UIFocusItemScrollableContainer,UIKeyInput,UILargeContentViewerItem,UILetterformAwareAdjusting,UIPasteConfigurationSupporting,UIPopoverPresentationControllerSourceItem,UIResponderStandardEditActions,UITextDraggable,UITextDroppable,UITextInput,UITextInputTraits,UITextPasteConfigurationSupporting,UITextSearching,UITraitChangeObservable,UITraitEnvironment,UIUserActivityRestoring
public class UITextView extends UIScrollView implements UITextInput, UIContentSizeCategoryAdjusting, UILetterformAwareAdjusting, UITextDraggable, UITextDroppable, UITextPasteConfigurationSupporting, UIFindInteractionDelegate, UITextSearching
API-Since: 2.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.uikit.UIView
UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4, UIView.Block_animateWithDurationAnimations, UIView.Block_animateWithDurationAnimationsCompletion_1, UIView.Block_animateWithDurationAnimationsCompletion_2, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_6, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4, UIView.Block_performWithoutAnimation, UIView.Block_transitionFromViewToViewDurationOptionsCompletion, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UITraitChangeObservable
UITraitChangeObservable.Block_registerForTraitChangesWithHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUITextView(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull UITextView_appearance()To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class.@NotNull UITextView_appearanceForTraitCollection(@NotNull UITraitCollection trait)API-Since: 8.0@NotNull UITextView_appearanceForTraitCollectionWhenContainedIn(@NotNull UITraitCollection trait, @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.@NotNull UITextView_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull UITraitCollection trait, @NotNull NSArray<?> containerTypes)API-Since: 9.0@NotNull UITextView_appearanceWhenContainedIn(@Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.@NotNull UITextView_appearanceWhenContainedInInstancesOfClasses(@NotNull NSArray<?> containerTypes)API-Since: 9.0static booleanaccessInstanceVariablesDirectly()static voidaddKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)booleanadjustsFontForContentSizeCategory()Indicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed.static UITextViewalloc()static UITextViewallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanallowsEditingTextAttributes()defaults to NO API-Since: 6.0static voidanimateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationAnimations(double duration, UIView.Block_animateWithDurationAnimations animations)static voidanimateWithDurationAnimationsCompletion(double duration, UIView.Block_animateWithDurationAnimationsCompletion_1 animations, UIView.Block_animateWithDurationAnimationsCompletion_2 completion)static voidanimateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)static voidanimateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion(double duration, double bounce, double velocity, double delay, long options, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_6 completion)static @NotNull UITextViewappearance()static @NotNull UITextViewappearanceForTraitCollection(@NotNull UITraitCollection trait)static @NotNull UITextViewappearanceForTraitCollectionWhenContainedIn(@NotNull UITraitCollection trait, @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static @NotNull UITextViewappearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull UITraitCollection trait, @NotNull NSArray<?> containerTypes)static @NotNull UITextViewappearanceWhenContainedIn(@Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static @NotNull UITextViewappearanceWhenContainedInInstancesOfClasses(@NotNull NSArray<?> containerTypes)static booleanareAnimationsEnabled()NSAttributedStringattributedText()API-Since: 6.0longautocapitalizationType()default is UITextAutocapitalizationTypeSentenceslongautocorrectionType()default is UITextAutocorrectionTypeDefaultstatic booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)longbaseWritingDirectionForPositionInDirection(@NotNull UITextPosition position, long direction)Writing directionstatic voidbeginAnimationsContext(@Nullable java.lang.String animationID, @Nullable org.moe.natj.general.ptr.VoidPtr context)Deprecated.voidbeginFloatingCursorAtPoint(CGPoint point)The following three optional methods are for clients that wish to display a floating cursor to guide user manipulation of the selected text range via the system-provided keyboard.@NotNull UITextPositionbeginningOfDocument()The end and beginning of the the text document.longborderStyle()The border style for the text field.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)booleancanPasteItemProviders(@NotNull NSArray<? extends NSItemProvider> itemProviders)CGRectcaretRectForPosition(@NotNull UITextPosition position)longcharacterOffsetOfPositionWithinRange(@NotNull UITextPosition position, @NotNull UITextRange range)@Nullable UITextRangecharacterRangeAtPoint(CGPoint point)@Nullable UITextRangecharacterRangeByExtendingPositionInDirection(@NotNull UITextPosition position, long direction)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()voidclearAllDecoratedFoundText()Called when the current search session has changed or ended, with the expectation that all decorations applied via @c decorateFoundTextRange:usingStyle: are cleared.booleanclearsOnInsertion()defaults to NO.static voidclearTextInputContextIdentifier(@NotNull java.lang.String identifier)@Nullable UITextPositionclosestPositionToPoint(CGPoint point)Hit testing.@Nullable UITextPositionclosestPositionToPointWithinRange(CGPoint point, @NotNull UITextRange range)static voidcommitAnimations()Deprecated.longcompareFoundRangeToRangeInDocument(@NotNull UITextRange foundRange, @NotNull UITextRange toRange, @Nullable java.lang.Object document)Provide a comparison result comparing developer-provided @c fromRange to @c toRange .longcompareOrderFromDocumentToDocument(@NotNull java.lang.Object fromDocument, @NotNull java.lang.Object toDocument)Returns the visible ordering from `fromDocument` to `toDocument`.longcomparePositionToPosition(@NotNull UITextPosition position, @NotNull UITextPosition other)Simple evaluation of positionslongdataDetectorTypes()API-Since: 3.0static java.lang.StringdebugDescription_static()voiddecorateFoundTextRangeInDocumentUsingStyle(@NotNull UITextRange range, @Nullable java.lang.Object document, long style)Given a found @c range , decorate this text appropriately using the provided @c style type.@Nullable java.lang.Objectdelegate()default nil.voiddeleteBackward()static java.lang.Stringdescription_static()voiddictationRecognitionFailed()voiddictationRecordingDidEnd()These are optional methods for clients that wish to know when there are pending dictation results.@Nullable UIMenueditMenuForTextRangeSuggestedActions(@NotNull UITextRange textRange, @NotNull NSArray<? extends UIMenuElement> suggestedActions)Called when the text input is preparing an edit menu presentation for the specified text range.booleanenablesReturnKeyAutomatically()default is NO (when YES, will automatically disable return key when text widget has zero-length contents, and will automatically enable when text widget has non-zero-length contents)voidendFloatingCursor()API-Since: 9.0@NotNull UITextPositionendOfDocument()@Nullable UIFindInteractionfindInteraction()If `findInteractionEnabled` is set to true, returns this text view's built-in find interaction.voidfindInteractionDidBeginFindSession(@NotNull UIFindInteraction interaction, @NotNull UIFindSession session)Called when the search operation begins (and the system search UI appears).voidfindInteractionDidEndFindSession(@NotNull UIFindInteraction interaction, @NotNull UIFindSession session)Called when the current search session has changed or ended.@Nullable UIFindSessionfindInteractionSessionForView(@NotNull UIFindInteraction interaction, @NotNull UIView view)Called when a find session is requested to begin by the user.CGRectfirstRectForRange(@NotNull UITextRange range)Geometry used to provide, for example, a correction rect.@Nullable UIFontfont()CGRectframeForDictationResultPlaceholder(@NotNull java.lang.Object placeholder)static longhash_static()booleanhasText()static doubleinheritedAnimationDuration()UITextViewinit()UITextViewinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERUITextViewinitWithFrame(CGRect frame)UITextViewinitWithFrameTextContainer(CGRect frame, @Nullable NSTextContainer textContainer)Create a new text view with the specified text container (can be nil).longinlinePredictionType()default is UITextInlinePredictionTypeDefault API-Since: 17.0@Nullable UIViewinputAccessoryView()API-Since: 3.2@Nullable UITextInputDelegateinputDelegate()A system-provided input delegate is assigned when the system is interested in input changes.@Nullable UIViewinputView()Presented when object becomes first responder.voidinsertDictationResult(@NotNull NSArray<? extends UIDictationPhrase> dictationResult)This is an optional method for clients that wish to support dictation phrase alternatives.@NotNull java.lang.ObjectinsertDictationResultPlaceholder()The following three optional methods are for clients that wish to support a placeholder for pending dictation results.voidinsertText(@NotNull java.lang.String text)voidinsertTextAlternativesStyle(@NotNull java.lang.String text, @NotNull NSArray<java.lang.String> alternatives, long style)This is an optional method for clients that wish to support text phrase alternatives.@NotNull UITextPlaceholderinsertTextPlaceholderWithSize(CGSize size)Insert a placeholder If `size.height` is <= 0, then the placeholder is inline and line height.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)@NotNull java.lang.ObjectinteractionState()Note that the interaction state of a UITextView does _not_ encode the textual content of the field.booleanisEditable()booleanisFindInteractionEnabled()Enables this text view's built-in find interaction.booleanisSecureTextEntry()default is NObooleanisSelectable()Toggle selectability, which controls the ability of the user to select content and interact with URLs & attachments.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisTextDragActive()Returns whether this control currently has at least one active drag session.booleanisTextDropActive()Returns whether this control currently has at least one active drag session.longkeyboardAppearance()default is UIKeyboardAppearanceDefaultlongkeyboardType()default is UIKeyboardTypeDefaultstatic @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static @NotNull org.moe.natj.objc.ClasslayerClass()@NotNull NSLayoutManagerlayoutManager()To ensure compatibility with older code, accessing the .layoutManager of a UITextView - or its .textContainer's .layoutManager - will cause a UITextView that's using TextKit 2 to 'fall back' to TextKit 1, and return a newly created NSLayoutManager.NSDictionary<java.lang.String,?>linkTextAttributes()Style for links API-Since: 7.0@Nullable UITextRangemarkedTextRange()Nil if no marked text.@Nullable NSDictionary<java.lang.String,?>markedTextStyle()Describes how the marked text should be drawn.static voidmodifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)static UITextViewnew_objc()longoffsetFromPositionToPosition(@NotNull UITextPosition from, @NotNull UITextPosition toPosition)@Nullable UITextInputPasswordRulespasswordRules()default is nil API-Since: 12.0@Nullable UIPasteConfigurationpasteConfiguration()@Nullable UITextPasteDelegatepasteDelegate()voidpasteItemProviders(@NotNull NSArray<? extends NSItemProvider> itemProviders)static voidperformSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, @NotNull NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)voidperformTextSearchWithQueryStringUsingOptionsResultAggregator(@NotNull java.lang.String string, @NotNull UITextSearchOptions options, @NotNull UITextSearchAggregator aggregator)Perform a text search (across all available searchable documents) using @c string.static voidperformWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)@Nullable UITextPositionpositionFromPositionInDirectionOffset(@NotNull UITextPosition position, long direction, long offset)@Nullable UITextPositionpositionFromPositionOffset(@NotNull UITextPosition position, long offset)@Nullable UITextPositionpositionWithinRangeAtCharacterOffset(@NotNull UITextRange range, long offset)To be implemented if there is not a one-to-one correspondence between text positions within range and character offsets into the associated string.@Nullable UITextPositionpositionWithinRangeFarthestInDirection(@NotNull UITextRange range, long direction)Layout questions.voidremoveDictationResultPlaceholderWillInsertResult(@NotNull java.lang.Object placeholder, boolean willInsertResult)willInsertResult will be NO if the recognition failed.voidremoveTextPlaceholder(@NotNull UITextPlaceholder textPlaceholder)Remove the placeholder.voidreplaceAllOccurrencesOfQueryStringUsingOptionsWithText(@NotNull java.lang.String queryString, @NotNull UITextSearchOptions options, @NotNull java.lang.String replacementText)When replacing all occurrences at once, this method is called instead of the one above.voidreplaceFoundTextInRangeInDocumentWithText(@NotNull UITextRange range, @Nullable java.lang.Object document, @NotNull java.lang.String replacementText)If you return YES for `-supportsTextReplacement`, this method will be called whenever the user intends to replace a range of text.voidreplaceRangeWithText(@NotNull UITextRange range, @NotNull java.lang.String text)static booleanrequiresConstraintBasedLayout()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)longreturnKeyType()default is UIReturnKeyDefault (See note under UIReturnKeyType enum)voidscrollRangeToVisible(NSRange range)voidscrollRangeToVisibleInDocument(@NotNull UITextRange range, @Nullable java.lang.Object document)If scrolling is supported, implement this to know when the document should be scrolled to a particular search result.NSRangeselectedRange()@Nullable UITextRangeselectedTextRange()Text may have a selection, either zero-length (a caret) or ranged.@Nullable java.lang.ObjectselectedTextSearchDocument()Returns the current search document, if applicable.longselectionAffinity()Selection affinity determines whether, for example, the insertion point appears after the last character on a line or before the first character on the following line in cases where text wraps across line boundaries.@NotNull NSArray<? extends UITextSelectionRect>selectionRectsForRange(@NotNull UITextRange range)Returns an array of UITextSelectionRects API-Since: 6.0voidsetAdjustsFontForContentSizeCategory(boolean value)Indicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed.voidsetAllowsEditingTextAttributes(boolean value)defaults to NO API-Since: 6.0static voidsetAnimationBeginsFromCurrentState(boolean fromCurrentState)Deprecated.static voidsetAnimationCurve(long curve)Deprecated.static voidsetAnimationDelay(double delay)Deprecated.static voidsetAnimationDelegate(@Nullable java.lang.Object delegate)Deprecated.static voidsetAnimationDidStopSelector(@Nullable org.moe.natj.objc.SEL selector)Deprecated.static voidsetAnimationDuration_static(double duration)Deprecated.static voidsetAnimationRepeatAutoreverses(boolean repeatAutoreverses)Deprecated.static voidsetAnimationRepeatCount_static(float repeatCount)Deprecated.static voidsetAnimationsEnabled(boolean enabled)static voidsetAnimationStartDate(@NotNull NSDate startDate)Deprecated.static voidsetAnimationTransitionForViewCache(long transition, @NotNull UIView view, boolean cache)Deprecated.static voidsetAnimationWillStartSelector(@Nullable org.moe.natj.objc.SEL selector)Deprecated.voidsetAttributedMarkedTextSelectedRange(@Nullable NSAttributedString markedText, NSRange selectedRange)set attributedString as markedText, selectedRange is a range within the markedTextvoidsetAttributedText(NSAttributedString value)API-Since: 6.0voidsetAutocapitalizationType(long value)default is UITextAutocapitalizationTypeSentencesvoidsetAutocorrectionType(long value)default is UITextAutocorrectionTypeDefaultvoidsetBaseWritingDirectionForRange(long writingDirection, @NotNull UITextRange range)voidsetBorderStyle(long value)The border style for the text field.voidsetClearsOnInsertion(boolean value)defaults to NO.voidsetDataDetectorTypes(long value)API-Since: 3.0voidsetDelegate(@Nullable java.lang.Object value)default nil.voidsetDelegate_unsafe(@Nullable java.lang.Object value)default nil.voidsetEditable(boolean value)voidsetEnablesReturnKeyAutomatically(boolean value)default is NO (when YES, will automatically disable return key when text widget has zero-length contents, and will automatically enable when text widget has non-zero-length contents)voidsetFindInteractionEnabled(boolean value)Enables this text view's built-in find interaction.voidsetFont(@Nullable UIFont value)voidsetInlinePredictionType(long value)default is UITextInlinePredictionTypeDefault API-Since: 17.0voidsetInputAccessoryView(@Nullable UIView value)voidsetInputDelegate(@Nullable UITextInputDelegate value)voidsetInputDelegate_unsafe(@Nullable UITextInputDelegate value)A system-provided input delegate is assigned when the system is interested in input changes.voidsetInputView(@Nullable UIView value)Presented when object becomes first responder.voidsetInteractionState(@NotNull java.lang.Object value)Note that the interaction state of a UITextView does _not_ encode the textual content of the field.voidsetKeyboardAppearance(long value)default is UIKeyboardAppearanceDefaultvoidsetKeyboardType(long value)default is UIKeyboardTypeDefaultvoidsetLinkTextAttributes(NSDictionary<java.lang.String,?> value)Style for links API-Since: 7.0voidsetMarkedTextSelectedRange(@Nullable java.lang.String markedText, NSRange selectedRange)selectedRange is a range within the markedTextvoidsetMarkedTextStyle(@Nullable NSDictionary<java.lang.String,?> value)Describes how the marked text should be drawn.voidsetPasswordRules(@Nullable UITextInputPasswordRules value)default is nil API-Since: 12.0voidsetPasteConfiguration(@Nullable UIPasteConfiguration value)voidsetPasteDelegate(@Nullable UITextPasteDelegate value)voidsetPasteDelegate_unsafe(@Nullable UITextPasteDelegate value)voidsetReturnKeyType(long value)default is UIReturnKeyDefault (See note under UIReturnKeyType enum)voidsetSecureTextEntry(boolean value)default is NOvoidsetSelectable(boolean value)Toggle selectability, which controls the ability of the user to select content and interact with URLs & attachments.voidsetSelectedRange(NSRange value)voidsetSelectedTextRange(@Nullable UITextRange value)Text may have a selection, either zero-length (a caret) or ranged.voidsetSelectionAffinity(long value)Selection affinity determines whether, for example, the insertion point appears after the last character on a line or before the first character on the following line in cases where text wraps across line boundaries.voidsetSizingRule(long value)`sizingRule` defaults to `UILetterformAwareSizingRuleTypographic` and determines what rule is used during the calculation of `-sizeThatFits:` and `-intrinsicContentSize`voidsetSmartDashesType(long value)default is UITextSmartDashesTypeDefault; API-Since: 11.0voidsetSmartInsertDeleteType(long value)default is UITextSmartInsertDeleteTypeDefault; API-Since: 11.0voidsetSmartQuotesType(long value)default is UITextSmartQuotesTypeDefault; API-Since: 11.0voidsetSpellCheckingType(long value)default is UITextSpellCheckingTypeDefault; API-Since: 5.0voidsetText(java.lang.String value)voidsetTextAlignment(long value)default is NSLeftTextAlignmentvoidsetTextColor(@Nullable UIColor value)voidsetTextContainerInset(UIEdgeInsets value)Inset the text container's layout area within the text view's content area API-Since: 7.0voidsetTextContentType(java.lang.String value)default is nil API-Since: 10.0voidsetTextDragDelegate(@Nullable UITextDragDelegate value)voidsetTextDragDelegate_unsafe(@Nullable UITextDragDelegate value)voidsetTextDragOptions(long value)voidsetTextDropDelegate(@Nullable UITextDropDelegate value)voidsetTextDropDelegate_unsafe(@Nullable UITextDropDelegate value)voidsetTypingAttributes(@NotNull NSDictionary<java.lang.String,?> value)automatically resets when the selection changes API-Since: 6.0voidsetUsesStandardTextScaling(boolean value)When turned on, this changes the rendering scale of the text to match the standard text scaling and preserves the original font point sizes when the contents of the text view are copied to the pasteboard.static voidsetVersion_static(long aVersion)booleanshouldChangeTextInRangeReplacementText(@NotNull UITextRange range, @NotNull java.lang.String text)return NO to not change text API-Since: 6.0booleanshouldReplaceFoundTextInRangeInDocumentWithText(@NotNull UITextRange range, @Nullable java.lang.Object document, @NotNull java.lang.String replacementText)Optionally return NO to disallow the replacement of a particular result @c range .longsizingRule()`sizingRule` defaults to `UILetterformAwareSizingRuleTypographic` and determines what rule is used during the calculation of `-sizeThatFits:` and `-intrinsicContentSize`longsmartDashesType()default is UITextSmartDashesTypeDefault; API-Since: 11.0longsmartInsertDeleteType()default is UITextSmartInsertDeleteTypeDefault; API-Since: 11.0longsmartQuotesType()default is UITextSmartQuotesTypeDefault; API-Since: 11.0longspellCheckingType()default is UITextSpellCheckingTypeDefault; API-Since: 5.0static org.moe.natj.objc.Classsuperclass_static()booleansupportsTextReplacement()Return YES if your searchable item also supports replacement.java.lang.Stringtext()longtextAlignment()default is NSLeftTextAlignment@Nullable UIColortextColor()@NotNull NSTextContainertextContainer()Get the text container for the text view API-Since: 7.0UIEdgeInsetstextContainerInset()Inset the text container's layout area within the text view's content area API-Since: 7.0java.lang.StringtextContentType()default is nil API-Since: 10.0@Nullable UITextDragDelegatetextDragDelegate()@Nullable UIDragInteractiontextDragInteraction()The text drag interaction that UIKit installs on the text control.longtextDragOptions()@Nullable UITextDropDelegatetextDropDelegate()@Nullable UIDropInteractiontextDropInteraction()The text drop interaction that UIKit installs on the text control.@NotNull UIViewtextInputView()An affiliated view that provides a coordinate system for all geometric values in this protocol.@Nullable java.lang.StringtextInRange(@NotNull UITextRange range)Methods for manipulating text.@Nullable NSTextLayoutManagertextLayoutManager()This property accesses the TextKit 2 NSTextLayoutManager.@Nullable UITextRangetextRangeFromPositionToPosition(@NotNull UITextPosition fromPosition, @NotNull UITextPosition toPosition)Methods for creating ranges and positions.@NotNull NSTextStoragetextStorage()The textual contents of the text view.@Nullable NSDictionary<java.lang.String,?>textStylingAtPositionInDirection(@NotNull UITextPosition position, long direction)Text styling information can affect, for example, the appearance of a correction rect.static UITextViewtextViewUsingTextLayoutManager(boolean usingTextLayoutManager)From iOS 16 onwards, UITextViews are, by default, created with a TextKit 2 NSTextLayoutManager managing text layout (see the .textLayoutManager property).@NotNull UITextInputTokenizertokenizer()A tokenizer must be provided to inform the text input system about text units of varying granularity.static voidtransitionFromViewToViewDurationOptionsCompletion(@NotNull UIView fromView, @NotNull UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)static voidtransitionWithViewDurationOptionsAnimationsCompletion(@NotNull UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)@NotNull NSDictionary<java.lang.String,?>typingAttributes()automatically resets when the selection changes API-Since: 6.0voidunmarkText()voidupdateFloatingCursorAtPoint(CGPoint point)API-Since: 9.0static longuserInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)static longuserInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)booleanusesStandardTextScaling()When turned on, this changes the rendering scale of the text to match the standard text scaling and preserves the original font point sizes when the contents of the text view are copied to the pasteboard.static booleanuseStoredAccessor()Deprecated.static longversion_static()voidwillDismissEditMenuWithAnimator(@NotNull UIEditMenuInteractionAnimating animator)API-Since: 16.0voidwillHighlightFoundTextRangeInDocument(@NotNull UITextRange range, @Nullable java.lang.Object document)Called when the highlighted search result is about to change to @c range .voidwillPresentEditMenuWithAnimator(@NotNull UIEditMenuInteractionAnimating animator)These are optional methods for clients that wish to know the visiblity of text editing menus API-Since: 16.0-
Methods inherited from class apple.uikit.UIScrollView
adjustedContentInset, adjustedContentInsetDidChange, allowsKeyboardScrolling, alwaysBounceHorizontal, alwaysBounceVertical, automaticallyAdjustsScrollIndicatorInsets, bounces, bouncesZoom, canCancelContentTouches, contentInset, contentInsetAdjustmentBehavior, contentLayoutGuide, contentOffset, contentSize, coordinateSpace, decelerationRate, delaysContentTouches, directionalPressGestureRecognizer, encodeWithCoder, flashScrollIndicators, focusItemsInRect, frameLayoutGuide, horizontalScrollIndicatorInsets, indexDisplayMode, indicatorStyle, isDecelerating, isDirectionalLockEnabled, isDragging, isPagingEnabled, isScrollEnabled, isTracking, isZoomBouncing, isZooming, keyboardDismissMode, maximumZoomScale, minimumZoomScale, panGestureRecognizer, pinchGestureRecognizer, refreshControl, scrollIndicatorInsets, scrollRectToVisibleAnimated, scrollsToTop, setAllowsKeyboardScrolling, setAlwaysBounceHorizontal, setAlwaysBounceVertical, setAutomaticallyAdjustsScrollIndicatorInsets, setBounces, setBouncesZoom, setCanCancelContentTouches, setContentInset, setContentInsetAdjustmentBehavior, setContentOffset, setContentOffsetAnimated, setContentSize, setDecelerationRate, setDelaysContentTouches, setDirectionalLockEnabled, setHorizontalScrollIndicatorInsets, setIndexDisplayMode, setIndicatorStyle, setKeyboardDismissMode, setMaximumZoomScale, setMinimumZoomScale, setPagingEnabled, setRefreshControl, setScrollEnabled, setScrollIndicatorInsets, setScrollsToTop, setShowsHorizontalScrollIndicator, setShowsVerticalScrollIndicator, setVerticalScrollIndicatorInsets, setZoomScale, setZoomScaleAnimated, showsHorizontalScrollIndicator, showsVerticalScrollIndicator, touchesShouldBeginWithEventInContentView, touchesShouldCancelInContentView, verticalScrollIndicatorInsets, visibleSize, zoomScale, zoomToRectAnimated
-
Methods inherited from class apple.uikit.UIView
accessibilityIdentifier, accessibilityIgnoresInvertColors, actionForLayerForKey, addConstraint, addConstraints, addGestureRecognizer, addInteraction, addLayoutGuide, addMotionEffect, addSubview, alignmentRectForFrame, alignmentRectInsets, alpha, anchorPoint, appliedContentSizeCategoryLimitsDescription, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, canBecomeFocused, center, centerXAnchor, centerYAnchor, clearsContextBeforeDrawing, clipsToBounds, collisionBoundingPath, collisionBoundsType, constraints, constraintsAffectingLayoutForAxis, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, contentScaleFactor, contentStretch, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, decodeRestorableStateWithCoder, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocusInContextWithAnimationCoordinator, directionalLayoutMargins, displayLayer, drawLayerInContext, drawRect, drawRectForViewPrintFormatter, drawViewHierarchyInRectAfterScreenUpdates, effectiveUserInterfaceLayoutDirection, encodeRestorableStateWithCoder, endEditing, exchangeSubviewAtIndexWithSubviewAtIndex, exerciseAmbiguityInLayout, firstBaselineAnchor, focusEffect, focusGroupIdentifier, focusGroupPriority, focusItemContainer, frame, frameForAlignmentRect, frameInView, gestureRecognizers, gestureRecognizerShouldBegin, hasAmbiguousLayout, heightAnchor, hitTestWithEvent, hoverStyle, insertSubviewAboveSubview, insertSubviewAtIndex, insertSubviewBelowSubview, insetsLayoutMarginsFromSafeArea, interactions, intrinsicContentSize, invalidateIntrinsicContentSize, isDescendantOfView, isExclusiveTouch, isFocused, isHidden, isMultipleTouchEnabled, isOpaque, isTransparentFocusItem, isUserInteractionEnabled, keyboardLayoutGuide, largeContentImage, largeContentImageInsets, largeContentTitle, lastBaselineAnchor, layer, layerWillDraw, layoutGuides, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSublayersOfLayer, layoutSubviews, leadingAnchor, leftAnchor, maskView, maximumContentSizeCategory, minimumContentSizeCategory, motionEffects, needsUpdateConstraints, overrideUserInterfaceStyle, parentFocusEnvironment, pointInsideWithEvent, preferredFocusedView, preferredFocusEnvironments, preservesSuperviewLayoutMargins, readableContentGuide, registerForTraitChangesWithAction, registerForTraitChangesWithHandler, registerForTraitChangesWithTargetAction, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaInsetsDidChange, safeAreaLayoutGuide, scalesLargeContentImage, semanticContentAttribute, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnchorPoint, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriorityForAxis, setContentHuggingPriorityForAxis, setContentMode, setContentScaleFactor, setContentStretch, setDirectionalLayoutMargins, setExclusiveTouch, setFocusEffect, setFocusGroupIdentifier, setFocusGroupPriority, setFrame, setGestureRecognizers, setHidden, setHoverStyle, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLargeContentImage, setLargeContentImageInsets, setLargeContentTitle, setLayoutMargins, setMaskView, setMaximumContentSizeCategory, setMinimumContentSizeCategory, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplayInRect, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setScalesLargeContentImage, setSemanticContentAttribute, setShowsLargeContentViewer, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTransform3D, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocusInContext, showsLargeContentViewer, sizeThatFits, sizeToFit, snapshotViewAfterScreenUpdates, subviews, superview, systemLayoutSizeFittingSize, systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, trailingAnchor, traitCollection, traitCollectionDidChange, traitOverrides, transform, transform3D, translatesAutoresizingMaskIntoConstraints, unregisterForTraitChanges, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, updateTraitsIfNeeded, viewForBaselineLayout, viewForFirstBaselineLayout, viewForLastBaselineLayout, viewPrintFormatter, viewWithTag, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, duplicate, editingInteractionConfiguration, export, find, findAndReplace, findNext, findPrevious, increaseSize, inputAccessoryViewController, inputAssistantItem, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, move, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, rename, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, useSelectionForFind, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
addKeyframeWithRelativeStartTimeRelativeDurationAnimations
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, @NotNull UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
-
alloc
public static UITextView alloc()
-
allocWithZone
public static UITextView allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animateKeyframesWithDurationDelayOptionsAnimationsCompletion
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationAnimations
public static void animateWithDurationAnimations(double duration, @NotNull UIView.Block_animateWithDurationAnimations animations)
-
animateWithDurationAnimationsCompletion
public static void animateWithDurationAnimationsCompletion(double duration, @NotNull UIView.Block_animateWithDurationAnimationsCompletion_1 animations, @Nullable UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
-
animateWithDurationDelayOptionsAnimationsCompletion
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, @NotNull UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, @Nullable UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
-
appearance
@NotNull public static @NotNull UITextView appearance()
-
appearanceForTraitCollection
@NotNull public static @NotNull UITextView appearanceForTraitCollection(@NotNull @NotNull UITraitCollection trait)
-
appearanceForTraitCollectionWhenContainedIn
@NotNull @Deprecated public static @NotNull UITextView appearanceForTraitCollectionWhenContainedIn(@NotNull @NotNull UITraitCollection trait, @Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceForTraitCollectionWhenContainedInInstancesOfClasses
@NotNull public static @NotNull UITextView appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull @NotNull UITraitCollection trait, @NotNull @NotNull NSArray<?> containerTypes)
-
appearanceWhenContainedIn
@NotNull @Deprecated public static @NotNull UITextView appearanceWhenContainedIn(@Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceWhenContainedInInstancesOfClasses
@NotNull public static @NotNull UITextView appearanceWhenContainedInInstancesOfClasses(@NotNull @NotNull NSArray<?> containerTypes)
-
areAnimationsEnabled
public static boolean areAnimationsEnabled()
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
beginAnimationsContext
@Deprecated public static void beginAnimationsContext(@Nullable @Nullable java.lang.String animationID, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr context)Deprecated.
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(@NotNull @NotNull java.lang.String identifier)
-
commitAnimations
@Deprecated public static void commitAnimations()
Deprecated.
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
inheritedAnimationDuration
public static double inheritedAnimationDuration()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
layerClass
@NotNull public static @NotNull org.moe.natj.objc.Class layerClass()
-
new_objc
public static UITextView new_objc()
-
performSystemAnimationOnViewsOptionsAnimationsCompletion
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, @NotNull @NotNull NSArray<? extends UIView> views, long options, @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
-
performWithoutAnimation
public static void performWithoutAnimation(@NotNull UIView.Block_performWithoutAnimation actionsWithoutAnimation)
-
requiresConstraintBasedLayout
public static boolean requiresConstraintBasedLayout()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setAnimationBeginsFromCurrentState
@Deprecated public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
Deprecated.
-
setAnimationCurve
@Deprecated public static void setAnimationCurve(long curve)
Deprecated.
-
setAnimationDelay
@Deprecated public static void setAnimationDelay(double delay)
Deprecated.
-
setAnimationDelegate
@Deprecated public static void setAnimationDelegate(@Nullable @Nullable java.lang.Object delegate)Deprecated.
-
setAnimationDidStopSelector
@Deprecated public static void setAnimationDidStopSelector(@Nullable @Nullable org.moe.natj.objc.SEL selector)Deprecated.
-
setAnimationDuration_static
@Deprecated public static void setAnimationDuration_static(double duration)
Deprecated.
-
setAnimationRepeatAutoreverses
@Deprecated public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
Deprecated.
-
setAnimationRepeatCount_static
@Deprecated public static void setAnimationRepeatCount_static(float repeatCount)
Deprecated.
-
setAnimationStartDate
@Deprecated public static void setAnimationStartDate(@NotNull @NotNull NSDate startDate)Deprecated.
-
setAnimationTransitionForViewCache
@Deprecated public static void setAnimationTransitionForViewCache(long transition, @NotNull @NotNull UIView view, boolean cache)Deprecated.
-
setAnimationWillStartSelector
@Deprecated public static void setAnimationWillStartSelector(@Nullable @Nullable org.moe.natj.objc.SEL selector)Deprecated.
-
setAnimationsEnabled
public static void setAnimationsEnabled(boolean enabled)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
transitionFromViewToViewDurationOptionsCompletion
public static void transitionFromViewToViewDurationOptionsCompletion(@NotNull @NotNull UIView fromView, @NotNull @NotNull UIView toView, double duration, long options, @Nullable UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
-
transitionWithViewDurationOptionsAnimationsCompletion
public static void transitionWithViewDurationOptionsAnimationsCompletion(@NotNull @NotNull UIView view, double duration, long options, @Nullable UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)
-
userInterfaceLayoutDirectionForSemanticContentAttribute
public static long userInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)
-
userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection
public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)
-
version_static
public static long version_static()
-
adjustsFontForContentSizeCategory
public boolean adjustsFontForContentSizeCategory()
Description copied from interface:UIContentSizeCategoryAdjustingIndicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed. For this property to take effect, the element’s font must be one of the following: - a font vended using +preferredFontForTextStyle: or +preferredFontForTextStyle:compatibleWithTraitCollection: with a valid UIFontTextStyle - a font vended using - [UIFontMetrics scaledFontForFont:] or one of its variants- Specified by:
adjustsFontForContentSizeCategoryin interfaceUIContentSizeCategoryAdjusting
-
allowsEditingTextAttributes
public boolean allowsEditingTextAttributes()
defaults to NO API-Since: 6.0
-
_appearance
@NotNull public @NotNull UITextView _appearance()
Description copied from interface:UIAppearanceTo customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.- Specified by:
_appearancein interfaceUIAppearance- Overrides:
_appearancein classUIScrollView
-
_appearanceForTraitCollection
@NotNull public @NotNull UITextView _appearanceForTraitCollection(@NotNull @NotNull UITraitCollection trait)
Description copied from interface:UIAppearanceAPI-Since: 8.0- Specified by:
_appearanceForTraitCollectionin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionin classUIScrollView
-
_appearanceForTraitCollectionWhenContainedIn
@NotNull @Deprecated public @NotNull UITextView _appearanceForTraitCollectionWhenContainedIn(@NotNull @NotNull UITraitCollection trait, @Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.Description copied from interface:UIAppearanceAPI-Since: 8.0 Deprecated-Since: 9.0- Specified by:
_appearanceForTraitCollectionWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInin classUIScrollView
-
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses
@NotNull public @NotNull UITextView _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull @NotNull UITraitCollection trait, @NotNull @NotNull NSArray<?> containerTypes)
Description copied from interface:UIAppearanceAPI-Since: 9.0- Specified by:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin classUIScrollView
-
_appearanceWhenContainedIn
@NotNull @Deprecated public @NotNull UITextView _appearanceWhenContainedIn(@Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.Description copied from interface:UIAppearanceTo customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down. API-Since: 5.0 Deprecated-Since: 9.0- Specified by:
_appearanceWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInin classUIScrollView
-
_appearanceWhenContainedInInstancesOfClasses
@NotNull public @NotNull UITextView _appearanceWhenContainedInInstancesOfClasses(@NotNull @NotNull NSArray<?> containerTypes)
Description copied from interface:UIAppearanceAPI-Since: 9.0- Specified by:
_appearanceWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInInstancesOfClassesin classUIScrollView
-
attributedText
public NSAttributedString attributedText()
API-Since: 6.0
-
autocapitalizationType
public long autocapitalizationType()
Description copied from interface:UITextInputTraitsdefault is UITextAutocapitalizationTypeSentences- Specified by:
autocapitalizationTypein interfaceUITextInputTraits
-
autocorrectionType
public long autocorrectionType()
Description copied from interface:UITextInputTraitsdefault is UITextAutocorrectionTypeDefault- Specified by:
autocorrectionTypein interfaceUITextInputTraits
-
baseWritingDirectionForPositionInDirection
public long baseWritingDirectionForPositionInDirection(@NotNull @NotNull UITextPosition position, long direction)Description copied from interface:UITextInputWriting direction- Specified by:
baseWritingDirectionForPositionInDirectionin interfaceUITextInput
-
beginFloatingCursorAtPoint
public void beginFloatingCursorAtPoint(CGPoint point)
Description copied from interface:UITextInputThe following three optional methods are for clients that wish to display a floating cursor to guide user manipulation of the selected text range via the system-provided keyboard. If a client does not implement these methods, user feedback will be limited to the outcome after setting the selected text range using positions resulting from hit testing. API-Since: 9.0- Specified by:
beginFloatingCursorAtPointin interfaceUITextInput
-
beginningOfDocument
@NotNull public @NotNull UITextPosition beginningOfDocument()
Description copied from interface:UITextInputThe end and beginning of the the text document.- Specified by:
beginningOfDocumentin interfaceUITextInput
-
caretRectForPosition
public CGRect caretRectForPosition(@NotNull @NotNull UITextPosition position)
- Specified by:
caretRectForPositionin interfaceUITextInput
-
characterOffsetOfPositionWithinRange
public long characterOffsetOfPositionWithinRange(@NotNull @NotNull UITextPosition position, @NotNull @NotNull UITextRange range)- Specified by:
characterOffsetOfPositionWithinRangein interfaceUITextInput
-
characterRangeAtPoint
@Nullable public @Nullable UITextRange characterRangeAtPoint(CGPoint point)
- Specified by:
characterRangeAtPointin interfaceUITextInput
-
characterRangeByExtendingPositionInDirection
@Nullable public @Nullable UITextRange characterRangeByExtendingPositionInDirection(@NotNull @NotNull UITextPosition position, long direction)
- Specified by:
characterRangeByExtendingPositionInDirectionin interfaceUITextInput
-
clearsOnInsertion
public boolean clearsOnInsertion()
defaults to NO. if YES, the selection UI is hidden, and inserting text will replace the contents of the field. changing the selection will automatically set this to NO. API-Since: 6.0
-
closestPositionToPoint
@Nullable public @Nullable UITextPosition closestPositionToPoint(CGPoint point)
Description copied from interface:UITextInputHit testing.- Specified by:
closestPositionToPointin interfaceUITextInput
-
closestPositionToPointWithinRange
@Nullable public @Nullable UITextPosition closestPositionToPointWithinRange(CGPoint point, @NotNull @NotNull UITextRange range)
- Specified by:
closestPositionToPointWithinRangein interfaceUITextInput
-
comparePositionToPosition
public long comparePositionToPosition(@NotNull @NotNull UITextPosition position, @NotNull @NotNull UITextPosition other)Description copied from interface:UITextInputSimple evaluation of positions- Specified by:
comparePositionToPositionin interfaceUITextInput
-
dataDetectorTypes
public long dataDetectorTypes()
API-Since: 3.0
-
delegate
@Nullable public @Nullable java.lang.Object delegate()
Description copied from class:UIScrollViewdefault nil. weak reference- Overrides:
delegatein classUIScrollView
-
deleteBackward
public void deleteBackward()
- Specified by:
deleteBackwardin interfaceUIKeyInput
-
dictationRecognitionFailed
public void dictationRecognitionFailed()
- Specified by:
dictationRecognitionFailedin interfaceUITextInput
-
dictationRecordingDidEnd
public void dictationRecordingDidEnd()
Description copied from interface:UITextInputThese are optional methods for clients that wish to know when there are pending dictation results.- Specified by:
dictationRecordingDidEndin interfaceUITextInput
-
enablesReturnKeyAutomatically
public boolean enablesReturnKeyAutomatically()
Description copied from interface:UITextInputTraitsdefault is NO (when YES, will automatically disable return key when text widget has zero-length contents, and will automatically enable when text widget has non-zero-length contents)- Specified by:
enablesReturnKeyAutomaticallyin interfaceUITextInputTraits
-
endFloatingCursor
public void endFloatingCursor()
Description copied from interface:UITextInputAPI-Since: 9.0- Specified by:
endFloatingCursorin interfaceUITextInput
-
endOfDocument
@NotNull public @NotNull UITextPosition endOfDocument()
- Specified by:
endOfDocumentin interfaceUITextInput
-
firstRectForRange
public CGRect firstRectForRange(@NotNull @NotNull UITextRange range)
Description copied from interface:UITextInputGeometry used to provide, for example, a correction rect.- Specified by:
firstRectForRangein interfaceUITextInput
-
font
@Nullable public @Nullable UIFont font()
-
frameForDictationResultPlaceholder
public CGRect frameForDictationResultPlaceholder(@NotNull @NotNull java.lang.Object placeholder)
- Specified by:
frameForDictationResultPlaceholderin interfaceUITextInput
-
hasText
public boolean hasText()
- Specified by:
hasTextin interfaceUIKeyInput
-
init
public UITextView init()
- Overrides:
initin classUIScrollView
-
initWithCoder
public UITextView initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIScrollView
-
initWithFrame
public UITextView initWithFrame(CGRect frame)
- Overrides:
initWithFramein classUIScrollView
-
initWithFrameTextContainer
public UITextView initWithFrameTextContainer(CGRect frame, @Nullable @Nullable NSTextContainer textContainer)
Create a new text view with the specified text container (can be nil). This initializer will follow the NSTextContainer's usage of TextKit 2 (NSTextLayoutManager) or TextKit 1 (NSLayoutManager). If a nil NSTextContainer is specified, TextKit 2 will be used. API-Since: 7.0
-
inputAccessoryView
@Nullable public @Nullable UIView inputAccessoryView()
Description copied from class:UIResponderAPI-Since: 3.2- Overrides:
inputAccessoryViewin classUIResponder
-
inputDelegate
@Nullable public @Nullable UITextInputDelegate inputDelegate()
Description copied from interface:UITextInputA system-provided input delegate is assigned when the system is interested in input changes.- Specified by:
inputDelegatein interfaceUITextInput
-
inputView
@Nullable public @Nullable UIView inputView()
Presented when object becomes first responder. If set to nil, reverts to following responder chain. If set while first responder, will not take effect until reloadInputViews is called.- Overrides:
inputViewin classUIResponder
-
insertDictationResult
public void insertDictationResult(@NotNull @NotNull NSArray<? extends UIDictationPhrase> dictationResult)Description copied from interface:UITextInputThis is an optional method for clients that wish to support dictation phrase alternatives. If they do not implement this method, dictation will just insert the most likely interpretation of what was spoken via -insertText:. dictationResult is an array of UIDictationPhrases.- Specified by:
insertDictationResultin interfaceUITextInput
-
insertDictationResultPlaceholder
@NotNull public @NotNull java.lang.Object insertDictationResultPlaceholder()
Description copied from interface:UITextInputThe following three optional methods are for clients that wish to support a placeholder for pending dictation results. -insertDictationPlaceholder must return a reference to the placeholder. This reference will be used to identify the placeholder by the other methods (there may be more than one placeholder).- Specified by:
insertDictationResultPlaceholderin interfaceUITextInput
-
insertText
public void insertText(@NotNull @NotNull java.lang.String text)- Specified by:
insertTextin interfaceUIKeyInput
-
isEditable
public boolean isEditable()
-
setEditable
public void setEditable(boolean value)
-
isSecureTextEntry
public boolean isSecureTextEntry()
Description copied from interface:UITextInputTraitsdefault is NO- Specified by:
isSecureTextEntryin interfaceUITextInputTraits
-
setSecureTextEntry
public void setSecureTextEntry(boolean value)
Description copied from interface:UITextInputTraitsdefault is NO- Specified by:
setSecureTextEntryin interfaceUITextInputTraits
-
isSelectable
public boolean isSelectable()
Toggle selectability, which controls the ability of the user to select content and interact with URLs & attachments. On tvOS this also makes the text view focusable. By default, text item interaction follows selectable if the text item methods on UITextViewDelegate are not implemented; otherwise, they follow the result of the specified delegate methods. API-Since: 7.0
-
setSelectable
public void setSelectable(boolean value)
Toggle selectability, which controls the ability of the user to select content and interact with URLs & attachments. On tvOS this also makes the text view focusable. By default, text item interaction follows selectable if the text item methods on UITextViewDelegate are not implemented; otherwise, they follow the result of the specified delegate methods. API-Since: 7.0
-
keyboardAppearance
public long keyboardAppearance()
Description copied from interface:UITextInputTraitsdefault is UIKeyboardAppearanceDefault- Specified by:
keyboardAppearancein interfaceUITextInputTraits
-
keyboardType
public long keyboardType()
Description copied from interface:UITextInputTraitsdefault is UIKeyboardTypeDefault- Specified by:
keyboardTypein interfaceUITextInputTraits
-
layoutManager
@NotNull public @NotNull NSLayoutManager layoutManager()
To ensure compatibility with older code, accessing the .layoutManager of a UITextView - or its .textContainer's .layoutManager - will cause a UITextView that's using TextKit 2 to 'fall back' to TextKit 1, and return a newly created NSLayoutManager. After this happens, .textLayoutManager will return nil - and _any TextKit 2 objects you may have cached will cease functioning_. Be careful about this if you are intending to be using TextKit 2! API-Since: 7.0
-
linkTextAttributes
public NSDictionary<java.lang.String,?> linkTextAttributes()
Style for links API-Since: 7.0
-
markedTextRange
@Nullable public @Nullable UITextRange markedTextRange()
Description copied from interface:UITextInputNil if no marked text.- Specified by:
markedTextRangein interfaceUITextInput
-
markedTextStyle
@Nullable public @Nullable NSDictionary<java.lang.String,?> markedTextStyle()
Description copied from interface:UITextInputDescribes how the marked text should be drawn.- Specified by:
markedTextStylein interfaceUITextInput
-
offsetFromPositionToPosition
public long offsetFromPositionToPosition(@NotNull @NotNull UITextPosition from, @NotNull @NotNull UITextPosition toPosition)- Specified by:
offsetFromPositionToPositionin interfaceUITextInput
-
positionFromPositionInDirectionOffset
@Nullable public @Nullable UITextPosition positionFromPositionInDirectionOffset(@NotNull @NotNull UITextPosition position, long direction, long offset)
- Specified by:
positionFromPositionInDirectionOffsetin interfaceUITextInput
-
positionFromPositionOffset
@Nullable public @Nullable UITextPosition positionFromPositionOffset(@NotNull @NotNull UITextPosition position, long offset)
- Specified by:
positionFromPositionOffsetin interfaceUITextInput
-
positionWithinRangeAtCharacterOffset
@Nullable public @Nullable UITextPosition positionWithinRangeAtCharacterOffset(@NotNull @NotNull UITextRange range, long offset)
Description copied from interface:UITextInputTo be implemented if there is not a one-to-one correspondence between text positions within range and character offsets into the associated string.- Specified by:
positionWithinRangeAtCharacterOffsetin interfaceUITextInput
-
positionWithinRangeFarthestInDirection
@Nullable public @Nullable UITextPosition positionWithinRangeFarthestInDirection(@NotNull @NotNull UITextRange range, long direction)
Description copied from interface:UITextInputLayout questions.- Specified by:
positionWithinRangeFarthestInDirectionin interfaceUITextInput
-
removeDictationResultPlaceholderWillInsertResult
public void removeDictationResultPlaceholderWillInsertResult(@NotNull @NotNull java.lang.Object placeholder, boolean willInsertResult)Description copied from interface:UITextInputwillInsertResult will be NO if the recognition failed.- Specified by:
removeDictationResultPlaceholderWillInsertResultin interfaceUITextInput
-
replaceRangeWithText
public void replaceRangeWithText(@NotNull @NotNull UITextRange range, @NotNull @NotNull java.lang.String text)- Specified by:
replaceRangeWithTextin interfaceUITextInput
-
returnKeyType
public long returnKeyType()
Description copied from interface:UITextInputTraitsdefault is UIReturnKeyDefault (See note under UIReturnKeyType enum)- Specified by:
returnKeyTypein interfaceUITextInputTraits
-
scrollRangeToVisible
public void scrollRangeToVisible(NSRange range)
-
selectedRange
public NSRange selectedRange()
-
selectedTextRange
@Nullable public @Nullable UITextRange selectedTextRange()
Description copied from interface:UITextInputText may have a selection, either zero-length (a caret) or ranged. Editing operations are always performed on the text from this selection. nil corresponds to no selection.- Specified by:
selectedTextRangein interfaceUITextInput- Specified by:
selectedTextRangein interfaceUITextSearching
-
selectionAffinity
public long selectionAffinity()
Description copied from interface:UITextInputSelection affinity determines whether, for example, the insertion point appears after the last character on a line or before the first character on the following line in cases where text wraps across line boundaries.- Specified by:
selectionAffinityin interfaceUITextInput
-
selectionRectsForRange
@NotNull public @NotNull NSArray<? extends UITextSelectionRect> selectionRectsForRange(@NotNull @NotNull UITextRange range)
Description copied from interface:UITextInputReturns an array of UITextSelectionRects API-Since: 6.0- Specified by:
selectionRectsForRangein interfaceUITextInput
-
setAdjustsFontForContentSizeCategory
public void setAdjustsFontForContentSizeCategory(boolean value)
Description copied from interface:UIContentSizeCategoryAdjustingIndicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed. For this property to take effect, the element’s font must be one of the following: - a font vended using +preferredFontForTextStyle: or +preferredFontForTextStyle:compatibleWithTraitCollection: with a valid UIFontTextStyle - a font vended using - [UIFontMetrics scaledFontForFont:] or one of its variants- Specified by:
setAdjustsFontForContentSizeCategoryin interfaceUIContentSizeCategoryAdjusting
-
setAllowsEditingTextAttributes
public void setAllowsEditingTextAttributes(boolean value)
defaults to NO API-Since: 6.0
-
setAttributedText
public void setAttributedText(NSAttributedString value)
API-Since: 6.0
-
setAutocapitalizationType
public void setAutocapitalizationType(long value)
Description copied from interface:UITextInputTraitsdefault is UITextAutocapitalizationTypeSentences- Specified by:
setAutocapitalizationTypein interfaceUITextInputTraits
-
setAutocorrectionType
public void setAutocorrectionType(long value)
Description copied from interface:UITextInputTraitsdefault is UITextAutocorrectionTypeDefault- Specified by:
setAutocorrectionTypein interfaceUITextInputTraits
-
setBaseWritingDirectionForRange
public void setBaseWritingDirectionForRange(long writingDirection, @NotNull @NotNull UITextRange range)- Specified by:
setBaseWritingDirectionForRangein interfaceUITextInput
-
setClearsOnInsertion
public void setClearsOnInsertion(boolean value)
defaults to NO. if YES, the selection UI is hidden, and inserting text will replace the contents of the field. changing the selection will automatically set this to NO. API-Since: 6.0
-
setDataDetectorTypes
public void setDataDetectorTypes(long value)
API-Since: 3.0
-
setDelegate_unsafe
public void setDelegate_unsafe(@Nullable @Nullable java.lang.Object value)Description copied from class:UIScrollViewdefault nil. weak reference- Overrides:
setDelegate_unsafein classUIScrollView
-
setDelegate
public void setDelegate(@Nullable @Nullable java.lang.Object value)Description copied from class:UIScrollViewdefault nil. weak reference- Overrides:
setDelegatein classUIScrollView
-
setEnablesReturnKeyAutomatically
public void setEnablesReturnKeyAutomatically(boolean value)
Description copied from interface:UITextInputTraitsdefault is NO (when YES, will automatically disable return key when text widget has zero-length contents, and will automatically enable when text widget has non-zero-length contents)- Specified by:
setEnablesReturnKeyAutomaticallyin interfaceUITextInputTraits
-
setFont
public void setFont(@Nullable @Nullable UIFont value)
-
setInputAccessoryView
public void setInputAccessoryView(@Nullable @Nullable UIView value)
-
setInputDelegate_unsafe
public void setInputDelegate_unsafe(@Nullable @Nullable UITextInputDelegate value)Description copied from interface:UITextInputA system-provided input delegate is assigned when the system is interested in input changes.- Specified by:
setInputDelegate_unsafein interfaceUITextInput
-
setInputDelegate
public void setInputDelegate(@Nullable @Nullable UITextInputDelegate value)
-
setInputView
public void setInputView(@Nullable @Nullable UIView value)Presented when object becomes first responder. If set to nil, reverts to following responder chain. If set while first responder, will not take effect until reloadInputViews is called.
-
setKeyboardAppearance
public void setKeyboardAppearance(long value)
Description copied from interface:UITextInputTraitsdefault is UIKeyboardAppearanceDefault- Specified by:
setKeyboardAppearancein interfaceUITextInputTraits
-
setKeyboardType
public void setKeyboardType(long value)
Description copied from interface:UITextInputTraitsdefault is UIKeyboardTypeDefault- Specified by:
setKeyboardTypein interfaceUITextInputTraits
-
setLinkTextAttributes
public void setLinkTextAttributes(NSDictionary<java.lang.String,?> value)
Style for links API-Since: 7.0
-
setMarkedTextSelectedRange
public void setMarkedTextSelectedRange(@Nullable @Nullable java.lang.String markedText, NSRange selectedRange)Description copied from interface:UITextInputselectedRange is a range within the markedText- Specified by:
setMarkedTextSelectedRangein interfaceUITextInput
-
setMarkedTextStyle
public void setMarkedTextStyle(@Nullable @Nullable NSDictionary<java.lang.String,?> value)Description copied from interface:UITextInputDescribes how the marked text should be drawn.- Specified by:
setMarkedTextStylein interfaceUITextInput
-
setReturnKeyType
public void setReturnKeyType(long value)
Description copied from interface:UITextInputTraitsdefault is UIReturnKeyDefault (See note under UIReturnKeyType enum)- Specified by:
setReturnKeyTypein interfaceUITextInputTraits
-
setSelectedRange
public void setSelectedRange(NSRange value)
-
setSelectedTextRange
public void setSelectedTextRange(@Nullable @Nullable UITextRange value)Description copied from interface:UITextInputText may have a selection, either zero-length (a caret) or ranged. Editing operations are always performed on the text from this selection. nil corresponds to no selection.- Specified by:
setSelectedTextRangein interfaceUITextInput
-
setSelectionAffinity
public void setSelectionAffinity(long value)
Description copied from interface:UITextInputSelection affinity determines whether, for example, the insertion point appears after the last character on a line or before the first character on the following line in cases where text wraps across line boundaries.- Specified by:
setSelectionAffinityin interfaceUITextInput
-
setSpellCheckingType
public void setSpellCheckingType(long value)
Description copied from interface:UITextInputTraitsdefault is UITextSpellCheckingTypeDefault; API-Since: 5.0- Specified by:
setSpellCheckingTypein interfaceUITextInputTraits
-
setText
public void setText(java.lang.String value)
-
setTextAlignment
public void setTextAlignment(long value)
default is NSLeftTextAlignment
-
setTextColor
public void setTextColor(@Nullable @Nullable UIColor value)
-
setTextContainerInset
public void setTextContainerInset(UIEdgeInsets value)
Inset the text container's layout area within the text view's content area API-Since: 7.0
-
setTextContentType
public void setTextContentType(java.lang.String value)
Description copied from interface:UITextInputTraitsdefault is nil API-Since: 10.0- Specified by:
setTextContentTypein interfaceUITextInputTraits
-
setTypingAttributes
public void setTypingAttributes(@NotNull @NotNull NSDictionary<java.lang.String,?> value)automatically resets when the selection changes API-Since: 6.0
-
shouldChangeTextInRangeReplacementText
public boolean shouldChangeTextInRangeReplacementText(@NotNull @NotNull UITextRange range, @NotNull @NotNull java.lang.String text)Description copied from interface:UITextInputreturn NO to not change text API-Since: 6.0- Specified by:
shouldChangeTextInRangeReplacementTextin interfaceUITextInput
-
spellCheckingType
public long spellCheckingType()
Description copied from interface:UITextInputTraitsdefault is UITextSpellCheckingTypeDefault; API-Since: 5.0- Specified by:
spellCheckingTypein interfaceUITextInputTraits
-
text
public java.lang.String text()
-
textAlignment
public long textAlignment()
default is NSLeftTextAlignment
-
textColor
@Nullable public @Nullable UIColor textColor()
-
textContainer
@NotNull public @NotNull NSTextContainer textContainer()
Get the text container for the text view API-Since: 7.0
-
textContainerInset
public UIEdgeInsets textContainerInset()
Inset the text container's layout area within the text view's content area API-Since: 7.0
-
textContentType
public java.lang.String textContentType()
Description copied from interface:UITextInputTraitsdefault is nil API-Since: 10.0- Specified by:
textContentTypein interfaceUITextInputTraits
-
textInRange
@Nullable public @Nullable java.lang.String textInRange(@NotNull @NotNull UITextRange range)Description copied from interface:UITextInputMethods for manipulating text.- Specified by:
textInRangein interfaceUITextInput
-
textInputView
@NotNull public @NotNull UIView textInputView()
Description copied from interface:UITextInputAn affiliated view that provides a coordinate system for all geometric values in this protocol. If unimplemented, the first view in the responder chain will be selected.- Specified by:
textInputViewin interfaceUITextInput
-
textRangeFromPositionToPosition
@Nullable public @Nullable UITextRange textRangeFromPositionToPosition(@NotNull @NotNull UITextPosition fromPosition, @NotNull @NotNull UITextPosition toPosition)
Description copied from interface:UITextInputMethods for creating ranges and positions.- Specified by:
textRangeFromPositionToPositionin interfaceUITextInput
-
textStorage
@NotNull public @NotNull NSTextStorage textStorage()
The textual contents of the text view. API-Since: 7.0
-
textStylingAtPositionInDirection
@Nullable public @Nullable NSDictionary<java.lang.String,?> textStylingAtPositionInDirection(@NotNull @NotNull UITextPosition position, long direction)
Description copied from interface:UITextInputText styling information can affect, for example, the appearance of a correction rect. Returns a dictionary containing NSAttributedString keys.- Specified by:
textStylingAtPositionInDirectionin interfaceUITextInput
-
tokenizer
@NotNull public @NotNull UITextInputTokenizer tokenizer()
Description copied from interface:UITextInputA tokenizer must be provided to inform the text input system about text units of varying granularity.- Specified by:
tokenizerin interfaceUITextInput
-
typingAttributes
@NotNull public @NotNull NSDictionary<java.lang.String,?> typingAttributes()
automatically resets when the selection changes API-Since: 6.0
-
unmarkText
public void unmarkText()
- Specified by:
unmarkTextin interfaceUITextInput
-
updateFloatingCursorAtPoint
public void updateFloatingCursorAtPoint(CGPoint point)
Description copied from interface:UITextInputAPI-Since: 9.0- Specified by:
updateFloatingCursorAtPointin interfaceUITextInput
-
canPasteItemProviders
public boolean canPasteItemProviders(@NotNull @NotNull NSArray<? extends NSItemProvider> itemProviders)- Specified by:
canPasteItemProvidersin interfaceUIPasteConfigurationSupporting- Overrides:
canPasteItemProvidersin classUIResponder
-
isTextDragActive
public boolean isTextDragActive()
Description copied from interface:UITextDraggableReturns whether this control currently has at least one active drag session.- Specified by:
isTextDragActivein interfaceUITextDraggable
-
isTextDropActive
public boolean isTextDropActive()
Description copied from interface:UITextDroppableReturns whether this control currently has at least one active drag session.- Specified by:
isTextDropActivein interfaceUITextDroppable
-
pasteConfiguration
@Nullable public @Nullable UIPasteConfiguration pasteConfiguration()
- Specified by:
pasteConfigurationin interfaceUIPasteConfigurationSupporting- Overrides:
pasteConfigurationin classUIResponder
-
pasteDelegate
@Nullable public @Nullable UITextPasteDelegate pasteDelegate()
- Specified by:
pasteDelegatein interfaceUITextPasteConfigurationSupporting
-
pasteItemProviders
public void pasteItemProviders(@NotNull @NotNull NSArray<? extends NSItemProvider> itemProviders)- Specified by:
pasteItemProvidersin interfaceUIPasteConfigurationSupporting- Overrides:
pasteItemProvidersin classUIResponder
-
setPasteConfiguration
public void setPasteConfiguration(@Nullable @Nullable UIPasteConfiguration value)- Specified by:
setPasteConfigurationin interfaceUIPasteConfigurationSupporting- Overrides:
setPasteConfigurationin classUIResponder
-
setPasteDelegate_unsafe
public void setPasteDelegate_unsafe(@Nullable @Nullable UITextPasteDelegate value)- Specified by:
setPasteDelegate_unsafein interfaceUITextPasteConfigurationSupporting
-
setPasteDelegate
public void setPasteDelegate(@Nullable @Nullable UITextPasteDelegate value)
-
setSmartDashesType
public void setSmartDashesType(long value)
Description copied from interface:UITextInputTraitsdefault is UITextSmartDashesTypeDefault; API-Since: 11.0- Specified by:
setSmartDashesTypein interfaceUITextInputTraits
-
setSmartInsertDeleteType
public void setSmartInsertDeleteType(long value)
Description copied from interface:UITextInputTraitsdefault is UITextSmartInsertDeleteTypeDefault; API-Since: 11.0- Specified by:
setSmartInsertDeleteTypein interfaceUITextInputTraits
-
setSmartQuotesType
public void setSmartQuotesType(long value)
Description copied from interface:UITextInputTraitsdefault is UITextSmartQuotesTypeDefault; API-Since: 11.0- Specified by:
setSmartQuotesTypein interfaceUITextInputTraits
-
setTextDragDelegate_unsafe
public void setTextDragDelegate_unsafe(@Nullable @Nullable UITextDragDelegate value)- Specified by:
setTextDragDelegate_unsafein interfaceUITextDraggable
-
setTextDragDelegate
public void setTextDragDelegate(@Nullable @Nullable UITextDragDelegate value)
-
setTextDragOptions
public void setTextDragOptions(long value)
- Specified by:
setTextDragOptionsin interfaceUITextDraggable
-
setTextDropDelegate_unsafe
public void setTextDropDelegate_unsafe(@Nullable @Nullable UITextDropDelegate value)- Specified by:
setTextDropDelegate_unsafein interfaceUITextDroppable
-
setTextDropDelegate
public void setTextDropDelegate(@Nullable @Nullable UITextDropDelegate value)
-
smartDashesType
public long smartDashesType()
Description copied from interface:UITextInputTraitsdefault is UITextSmartDashesTypeDefault; API-Since: 11.0- Specified by:
smartDashesTypein interfaceUITextInputTraits
-
smartInsertDeleteType
public long smartInsertDeleteType()
Description copied from interface:UITextInputTraitsdefault is UITextSmartInsertDeleteTypeDefault; API-Since: 11.0- Specified by:
smartInsertDeleteTypein interfaceUITextInputTraits
-
smartQuotesType
public long smartQuotesType()
Description copied from interface:UITextInputTraitsdefault is UITextSmartQuotesTypeDefault; API-Since: 11.0- Specified by:
smartQuotesTypein interfaceUITextInputTraits
-
textDragDelegate
@Nullable public @Nullable UITextDragDelegate textDragDelegate()
- Specified by:
textDragDelegatein interfaceUITextDraggable
-
textDragInteraction
@Nullable public @Nullable UIDragInteraction textDragInteraction()
Description copied from interface:UITextDraggableThe text drag interaction that UIKit installs on the text control. Use this to explicitly disable drag interactions on system text controls, if desired.- Specified by:
textDragInteractionin interfaceUITextDraggable
-
textDragOptions
public long textDragOptions()
- Specified by:
textDragOptionsin interfaceUITextDraggable
-
textDropDelegate
@Nullable public @Nullable UITextDropDelegate textDropDelegate()
- Specified by:
textDropDelegatein interfaceUITextDroppable
-
textDropInteraction
@Nullable public @Nullable UIDropInteraction textDropInteraction()
Description copied from interface:UITextDroppableThe text drop interaction that UIKit installs on the text control. Use this to explicitly disable drop interactions on system text controls, if desired.- Specified by:
textDropInteractionin interfaceUITextDroppable
-
insertTextAlternativesStyle
public void insertTextAlternativesStyle(@NotNull @NotNull java.lang.String text, @NotNull @NotNull NSArray<java.lang.String> alternatives, long style)Description copied from interface:UITextInputThis is an optional method for clients that wish to support text phrase alternatives. If they do not implement this method, the text will be inserted by -insertText: without the phase alternatives.- Specified by:
insertTextAlternativesStylein interfaceUITextInput
-
insertTextPlaceholderWithSize
@NotNull public @NotNull UITextPlaceholder insertTextPlaceholderWithSize(CGSize size)
Description copied from interface:UITextInputInsert a placeholder If `size.height` is <= 0, then the placeholder is inline and line height. If `size.height` is > 0, then the placeholder is treated as a paragraph of height `size.height`.- Specified by:
insertTextPlaceholderWithSizein interfaceUITextInput
-
modifyAnimationsWithRepeatCountAutoreversesAnimations
public static void modifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, @NotNull UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
-
passwordRules
@Nullable public @Nullable UITextInputPasswordRules passwordRules()
Description copied from interface:UITextInputTraitsdefault is nil API-Since: 12.0- Specified by:
passwordRulesin interfaceUITextInputTraits
-
removeTextPlaceholder
public void removeTextPlaceholder(@NotNull @NotNull UITextPlaceholder textPlaceholder)Description copied from interface:UITextInputRemove the placeholder.- Specified by:
removeTextPlaceholderin interfaceUITextInput
-
setAttributedMarkedTextSelectedRange
public void setAttributedMarkedTextSelectedRange(@Nullable @Nullable NSAttributedString markedText, NSRange selectedRange)Description copied from interface:UITextInputset attributedString as markedText, selectedRange is a range within the markedText- Specified by:
setAttributedMarkedTextSelectedRangein interfaceUITextInput
-
setPasswordRules
public void setPasswordRules(@Nullable @Nullable UITextInputPasswordRules value)Description copied from interface:UITextInputTraitsdefault is nil API-Since: 12.0- Specified by:
setPasswordRulesin interfaceUITextInputTraits
-
setUsesStandardTextScaling
public void setUsesStandardTextScaling(boolean value)
When turned on, this changes the rendering scale of the text to match the standard text scaling and preserves the original font point sizes when the contents of the text view are copied to the pasteboard. Apps that show a lot of text content, such as a text viewer or editor, should turn this on and use the standard text scaling. API-Since: 13.0
-
usesStandardTextScaling
public boolean usesStandardTextScaling()
When turned on, this changes the rendering scale of the text to match the standard text scaling and preserves the original font point sizes when the contents of the text view are copied to the pasteboard. Apps that show a lot of text content, such as a text viewer or editor, should turn this on and use the standard text scaling. API-Since: 13.0
-
interactionState
@NotNull public @NotNull java.lang.Object interactionState()
Note that the interaction state of a UITextView does _not_ encode the textual content of the field. It should be saved separately, and restored _before_ the interaction state. Currently, this encodes selection (and/or cursor position), scroll position, and first responder status. The object returned here will be a plist type, so can e.g. be stored in an NSUserActivity's userInfo dictionary. API-Since: 15.0
-
setInteractionState
public void setInteractionState(@NotNull @NotNull java.lang.Object value)Note that the interaction state of a UITextView does _not_ encode the textual content of the field. It should be saved separately, and restored _before_ the interaction state. Currently, this encodes selection (and/or cursor position), scroll position, and first responder status. The object returned here will be a plist type, so can e.g. be stored in an NSUserActivity's userInfo dictionary. API-Since: 15.0
-
clearAllDecoratedFoundText
public void clearAllDecoratedFoundText()
Description copied from interface:UITextSearchingCalled when the current search session has changed or ended, with the expectation that all decorations applied via @c decorateFoundTextRange:usingStyle: are cleared.- Specified by:
clearAllDecoratedFoundTextin interfaceUITextSearching
-
compareFoundRangeToRangeInDocument
public long compareFoundRangeToRangeInDocument(@NotNull @NotNull UITextRange foundRange, @NotNull @NotNull UITextRange toRange, @Nullable @Nullable java.lang.Object document)Description copied from interface:UITextSearchingProvide a comparison result comparing developer-provided @c fromRange to @c toRange . This is used by the system find panel to know which @c UITextRange to highlight next when the user taps the "next" or "previous" result buttons.- Specified by:
compareFoundRangeToRangeInDocumentin interfaceUITextSearching- Parameters:
foundRange- Developer-provided range to compare from.toRange- Developer-provided range to compare to.document- If multiple documents are used, a document identifier will be provided here. Ranges are only compared between other ranges of the same document.
-
compareOrderFromDocumentToDocument
public long compareOrderFromDocumentToDocument(@NotNull @NotNull java.lang.Object fromDocument, @NotNull @NotNull java.lang.Object toDocument)Description copied from interface:UITextSearchingReturns the visible ordering from `fromDocument` to `toDocument`. If your document identifiers are index paths, for example, this would yield the same result as `-[NSIndexPath compare:]`.- Specified by:
compareOrderFromDocumentToDocumentin interfaceUITextSearching
-
decorateFoundTextRangeInDocumentUsingStyle
public void decorateFoundTextRangeInDocumentUsingStyle(@NotNull @NotNull UITextRange range, @Nullable @Nullable java.lang.Object document, long style)Description copied from interface:UITextSearchingGiven a found @c range , decorate this text appropriately using the provided @c style type.- Specified by:
decorateFoundTextRangeInDocumentUsingStylein interfaceUITextSearching- Parameters:
range- The range of text to decorate.document- If multiple documents are used, the relevant document identifier is provided here. Otherwise nil.style- A style hint for how to decorate the text. This is ultimately up to the developer, but developers are encouraged to match the system's appearance (i.e., UITextView) as close as possible.
-
editMenuForTextRangeSuggestedActions
@Nullable public @Nullable UIMenu editMenuForTextRangeSuggestedActions(@NotNull @NotNull UITextRange textRange, @NotNull @NotNull NSArray<? extends UIMenuElement> suggestedActions)
Description copied from interface:UITextInputCalled when the text input is preparing an edit menu presentation for the specified text range.- Specified by:
editMenuForTextRangeSuggestedActionsin interfaceUITextInput- Parameters:
textRange- The text range for which the menu is presented for.suggestedActions- The actions and commands that the system suggests.- Returns:
- Return a UIMenu describing the desired menu hierarchy. Return @c nil to present the default system menu. API-Since: 16.0
-
findInteraction
@Nullable public @Nullable UIFindInteraction findInteraction()
If `findInteractionEnabled` is set to true, returns this text view's built-in find interaction. Otherwise, nil. API-Since: 16.0
-
findInteractionDidBeginFindSession
public void findInteractionDidBeginFindSession(@NotNull @NotNull UIFindInteraction interaction, @NotNull @NotNull UIFindSession session)Description copied from interface:UIFindInteractionDelegateCalled when the search operation begins (and the system search UI appears). This would be a good time to decorate your view to indicate that a search operation is about to occur. System text elements will apply a dimming view around all non-highlighted search results, for instance.- Specified by:
findInteractionDidBeginFindSessionin interfaceUIFindInteractionDelegate
-
findInteractionDidEndFindSession
public void findInteractionDidEndFindSession(@NotNull @NotNull UIFindInteraction interaction, @NotNull @NotNull UIFindSession session)Description copied from interface:UIFindInteractionDelegateCalled when the current search session has changed or ended. This would be a good time to remove all decorations applied to found search results, and any decorations added when the search operation began (such as a dimming view).- Specified by:
findInteractionDidEndFindSessionin interfaceUIFindInteractionDelegate
-
findInteractionSessionForView
@Nullable public @Nullable UIFindSession findInteractionSessionForView(@NotNull @NotNull UIFindInteraction interaction, @NotNull @NotNull UIView view)
Description copied from interface:UIFindInteractionDelegateCalled when a find session is requested to begin by the user. Return an instance of a UIFindSession implementation to allow the find session to begin, otherwise return nil to prevent the system find panel from appearing.- Specified by:
findInteractionSessionForViewin interfaceUIFindInteractionDelegate
-
isFindInteractionEnabled
public boolean isFindInteractionEnabled()
Enables this text view's built-in find interaction. API-Since: 16.0
-
performTextSearchWithQueryStringUsingOptionsResultAggregator
public void performTextSearchWithQueryStringUsingOptionsResultAggregator(@NotNull @NotNull java.lang.String string, @NotNull @NotNull UITextSearchOptions options, @NotNull @NotNull UITextSearchAggregator aggregator)Description copied from interface:UITextSearchingPerform a text search (across all available searchable documents) using @c string. When results are found, provide the results to @c aggregator.- Specified by:
performTextSearchWithQueryStringUsingOptionsResultAggregatorin interfaceUITextSearching- Parameters:
string- The query string to search foroptions- Search options provided by the user.aggregator- When results are found, provide them to the aggregator. The aggregator is thread-safe, so you may send it messages on other threads.
-
replaceAllOccurrencesOfQueryStringUsingOptionsWithText
public void replaceAllOccurrencesOfQueryStringUsingOptionsWithText(@NotNull @NotNull java.lang.String queryString, @NotNull @NotNull UITextSearchOptions options, @NotNull @NotNull java.lang.String replacementText)Description copied from interface:UITextSearchingWhen replacing all occurrences at once, this method is called instead of the one above.- Specified by:
replaceAllOccurrencesOfQueryStringUsingOptionsWithTextin interfaceUITextSearching- Parameters:
queryString- The search term to replace.options- Search options provided by the find panel UI.replacementText- The string to replace it with.
-
replaceFoundTextInRangeInDocumentWithText
public void replaceFoundTextInRangeInDocumentWithText(@NotNull @NotNull UITextRange range, @Nullable @Nullable java.lang.Object document, @NotNull @NotNull java.lang.String replacementText)Description copied from interface:UITextSearchingIf you return YES for `-supportsTextReplacement`, this method will be called whenever the user intends to replace a range of text.- Specified by:
replaceFoundTextInRangeInDocumentWithTextin interfaceUITextSearching- Parameters:
range- The range of text requesting to be replaced.document- If multiple search documents are used, the relevant document identifier is provided here. Otherwise nil.replacementText- The replacement string.
-
scrollRangeToVisibleInDocument
public void scrollRangeToVisibleInDocument(@NotNull @NotNull UITextRange range, @Nullable @Nullable java.lang.Object document)Description copied from interface:UITextSearchingIf scrolling is supported, implement this to know when the document should be scrolled to a particular search result.- Specified by:
scrollRangeToVisibleInDocumentin interfaceUITextSearching- Parameters:
range- The text range to scroll to.document- (Optional) If multiple documents are used, the document identifier to scroll to.
-
selectedTextSearchDocument
@Nullable public @Nullable java.lang.Object selectedTextSearchDocument()
Description copied from interface:UITextSearchingReturns the current search document, if applicable. Nil otherwise.- Specified by:
selectedTextSearchDocumentin interfaceUITextSearching
-
setFindInteractionEnabled
public void setFindInteractionEnabled(boolean value)
Enables this text view's built-in find interaction. API-Since: 16.0
-
shouldReplaceFoundTextInRangeInDocumentWithText
public boolean shouldReplaceFoundTextInRangeInDocumentWithText(@NotNull @NotNull UITextRange range, @Nullable @Nullable java.lang.Object document, @NotNull @NotNull java.lang.String replacementText)Description copied from interface:UITextSearchingOptionally return NO to disallow the replacement of a particular result @c range . This will disable the "replace" button in the UI. If this method is unimplemented, it is assumed that all results are replaceable.- Specified by:
shouldReplaceFoundTextInRangeInDocumentWithTextin interfaceUITextSearching- Parameters:
range- Range to replace.document- If multiple documents are used, the document from which range originates.replacementText- Text that the user intends to replace with.
-
supportsTextReplacement
public boolean supportsTextReplacement()
Description copied from interface:UITextSearchingReturn YES if your searchable item also supports replacement. If this method is unimplemented, it is assumed that text replacement is not supported.- Specified by:
supportsTextReplacementin interfaceUITextSearching
-
textLayoutManager
@Nullable public @Nullable NSTextLayoutManager textLayoutManager()
This property accesses the TextKit 2 NSTextLayoutManager. You should generally prefer to use it over the TextKit 1 .layoutManager property if it exists. This property will return nil if TextKit 1 is in use. API-Since: 16.0
-
textViewUsingTextLayoutManager
public static UITextView textViewUsingTextLayoutManager(boolean usingTextLayoutManager)
From iOS 16 onwards, UITextViews are, by default, created with a TextKit 2 NSTextLayoutManager managing text layout (see the .textLayoutManager property). They will dynamically 'fall back' to a TextKit 1 NSLayoutManager if TextKit 1 features are used (notably, if the .layoutManager property is accessed). This convenience initializer can be used to specify TextKit 1 by default if you know code in your app relies on that. This avoids inefficiencies associated with the needless creation of a NSTextLayoutManager and the subsequent fallback. API-Since: 16.0
-
willDismissEditMenuWithAnimator
public void willDismissEditMenuWithAnimator(@NotNull @NotNull UIEditMenuInteractionAnimating animator)Description copied from interface:UITextInputAPI-Since: 16.0- Specified by:
willDismissEditMenuWithAnimatorin interfaceUITextInput
-
willHighlightFoundTextRangeInDocument
public void willHighlightFoundTextRangeInDocument(@NotNull @NotNull UITextRange range, @Nullable @Nullable java.lang.Object document)Description copied from interface:UITextSearchingCalled when the highlighted search result is about to change to @c range .- Specified by:
willHighlightFoundTextRangeInDocumentin interfaceUITextSearching
-
willPresentEditMenuWithAnimator
public void willPresentEditMenuWithAnimator(@NotNull @NotNull UIEditMenuInteractionAnimating animator)Description copied from interface:UITextInputThese are optional methods for clients that wish to know the visiblity of text editing menus API-Since: 16.0- Specified by:
willPresentEditMenuWithAnimatorin interfaceUITextInput
-
animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion
public static void animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion(double duration, double bounce, double velocity, double delay, long options, @NotNull UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5 animations, @Nullable UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_6 completion)
-
borderStyle
public long borderStyle()
The border style for the text field. API-Since: 17.0
-
inlinePredictionType
public long inlinePredictionType()
Description copied from interface:UITextInputTraitsdefault is UITextInlinePredictionTypeDefault API-Since: 17.0- Specified by:
inlinePredictionTypein interfaceUITextInputTraits
-
setBorderStyle
public void setBorderStyle(long value)
The border style for the text field. API-Since: 17.0
-
setInlinePredictionType
public void setInlinePredictionType(long value)
Description copied from interface:UITextInputTraitsdefault is UITextInlinePredictionTypeDefault API-Since: 17.0- Specified by:
setInlinePredictionTypein interfaceUITextInputTraits
-
setSizingRule
public void setSizingRule(long value)
Description copied from interface:UILetterformAwareAdjusting`sizingRule` defaults to `UILetterformAwareSizingRuleTypographic` and determines what rule is used during the calculation of `-sizeThatFits:` and `-intrinsicContentSize`- Specified by:
setSizingRulein interfaceUILetterformAwareAdjusting
-
sizingRule
public long sizingRule()
Description copied from interface:UILetterformAwareAdjusting`sizingRule` defaults to `UILetterformAwareSizingRuleTypographic` and determines what rule is used during the calculation of `-sizeThatFits:` and `-intrinsicContentSize`- Specified by:
sizingRulein interfaceUILetterformAwareAdjusting
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-