Package apple.social
Class SLComposeServiceViewController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIViewController
-
- apple.social.SLComposeServiceViewController
-
- All Implemented Interfaces:
NSCoding,NSExtensionRequestHandling,NSObject,UIActivityItemsConfigurationProviding,UIAppearanceContainer,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIScrollViewDelegate,UIStateRestoring,UITextViewDelegate,UITraitChangeObservable,UITraitEnvironment,UIUserActivityRestoring
public class SLComposeServiceViewController extends UIViewController implements UITextViewDelegate
API-Since: 8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.uikit.UIViewController
UIViewController.Block_dismissViewControllerAnimatedCompletion, UIViewController.Block_presentViewControllerAnimatedCompletion, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5
-
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 protectedSLComposeServiceViewController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static SLComposeServiceViewControlleralloc()static SLComposeServiceViewControllerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static voidattemptRotationToDeviceOrientation()Deprecated.UIViewControllerautoCompletionViewController()A view controller whose view replaces the configuration item table, sitting just below the text view.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)voidcancel()Triggers an animated dismissal of the sheet, and then calls -didSelectCancel.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)NSNumbercharactersRemaining()Set/change this to something non-nil to cause the character count view to appear/redraw.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(@NotNull java.lang.String identifier)NSArray<?>configurationItems()Subclasses should implement this, and return an array of SLComposeSheetConfigurationItem instances, if if needs to display configuration items in the sheet.java.lang.StringcontentText()Convenience.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddidSelectCancel()Called after the cancel animation has finished (in response to the user selecting the Cancel button, or someone calling -cancel).voiddidSelectPost()Called after the post animation has finished (in response to the user selecting the Post button).static longhash_static()SLComposeServiceViewControllerinit()SLComposeServiceViewControllerinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERSLComposeServiceViewControllerinitWithNibNameBundle(@Nullable java.lang.String nibNameOrNil, @Nullable NSBundle nibBundleOrNil)The designated initializer.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)booleanisContentValid()Called automatically after each text change to help determine the enable state of the Post button, and to give the subclass a chance to update charactersRemaining.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)UIViewloadPreviewView()Called when it's time to create a view suitable for previewing the attachments on the extensionContext.static SLComposeServiceViewControllernew_objc()java.lang.Stringplaceholder()When textView is empty, this string is displayed instead.voidpopConfigurationViewController()Dismisses the current configuration view controller.voidpresentationAnimationDidFinish()Called when the sheet presentation animation is finished.voidpushConfigurationViewController(UIViewController viewController)Presents a configuration view controller.voidreloadConfigurationItems()Forces a reload of the configuration items table.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidscrollViewDidChangeAdjustedContentInset(@NotNull UIScrollView scrollView)Also see -[UIScrollView adjustedContentInsetDidChange] API-Since: 11.0voidscrollViewDidEndDecelerating(@NotNull UIScrollView scrollView)called when scroll view grinds to a haltvoidscrollViewDidEndDraggingWillDecelerate(@NotNull UIScrollView scrollView, boolean decelerate)called on finger up if the user dragged.voidscrollViewDidEndScrollingAnimation(@NotNull UIScrollView scrollView)called when setContentOffset/scrollRectVisible:animated: finishes.voidscrollViewDidEndZoomingWithViewAtScale(@NotNull UIScrollView scrollView, @Nullable UIView view, double scale)scale between minimum and maximum.voidscrollViewDidScroll(@NotNull UIScrollView scrollView)any offset changesvoidscrollViewDidScrollToTop(@NotNull UIScrollView scrollView)called when scrolling animation finished.voidscrollViewDidZoom(@NotNull UIScrollView scrollView)any zoom scale changes API-Since: 3.2booleanscrollViewShouldScrollToTop(@NotNull UIScrollView scrollView)return a yes if you want to scroll to the top.voidscrollViewWillBeginDecelerating(@NotNull UIScrollView scrollView)called on finger up as we are movingvoidscrollViewWillBeginDragging(@NotNull UIScrollView scrollView)called on start of dragging (may require some time and or distance to move)voidscrollViewWillBeginZoomingWithView(@NotNull UIScrollView scrollView, @Nullable UIView view)called before the scroll view begins zooming its content API-Since: 3.2voidscrollViewWillEndDraggingWithVelocityTargetContentOffset(@NotNull UIScrollView scrollView, CGPoint velocity, @NotNull CGPoint targetContentOffset)called on finger up if the user dragged.voidsetAutoCompletionViewController(UIViewController value)A view controller whose view replaces the configuration item table, sitting just below the text view.voidsetCharactersRemaining(NSNumber value)Set/change this to something non-nil to cause the character count view to appear/redraw.voidsetPlaceholder(java.lang.String value)When textView is empty, this string is displayed instead.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()UITextViewtextView()voidtextViewDidBeginEditing(@NotNull UITextView textView)voidtextViewDidChange(@NotNull UITextView textView)voidtextViewDidChangeSelection(@NotNull UITextView textView)voidtextViewDidEndEditing(@NotNull UITextView textView)@Nullable UIMenutextViewEditMenuForTextInRangeSuggestedActions(@NotNull UITextView textView, NSRange range, @NotNull NSArray<? extends UIMenuElement> suggestedActions)Asks the delegate for the menu to be shown for the specified text range.@Nullable UITextItemMenuConfigurationtextViewMenuConfigurationForTextItemDefaultMenu(@NotNull UITextView textView, @NotNull UITextItem textItem, @NotNull UIMenu defaultMenu)Asks the delegate for the menu configuration to be performed when interacting with a text item.@Nullable UIActiontextViewPrimaryActionForTextItemDefaultAction(@NotNull UITextView textView, @NotNull UITextItem textItem, @NotNull UIAction defaultAction)Asks the delegate for the action to be performed when interacting with a text item.booleantextViewShouldBeginEditing(@NotNull UITextView textView)booleantextViewShouldChangeTextInRangeReplacementText(@NotNull UITextView textView, NSRange range, @NotNull java.lang.String text)booleantextViewShouldEndEditing(@NotNull UITextView textView)booleantextViewShouldInteractWithTextAttachmentInRange(@NotNull UITextView textView, @NotNull NSTextAttachment textAttachment, NSRange characterRange)Deprecated.booleantextViewShouldInteractWithTextAttachmentInRangeInteraction(@NotNull UITextView textView, @NotNull NSTextAttachment textAttachment, NSRange characterRange, long interaction)Deprecated.booleantextViewShouldInteractWithURLInRange(@NotNull UITextView textView, @NotNull NSURL URL, NSRange characterRange)Deprecated.booleantextViewShouldInteractWithURLInRangeInteraction(@NotNull UITextView textView, @NotNull NSURL URL, NSRange characterRange, long interaction)Deprecated.voidtextViewTextItemMenuWillDisplayForTextItemAnimator(@NotNull UITextView textView, @NotNull UITextItem textItem, @NotNull UIContextMenuInteractionAnimating animator)Informs the delegate that a text item menu is about to be presented with the specified animator.voidtextViewTextItemMenuWillEndForTextItemAnimator(@NotNull UITextView textView, @NotNull UITextItem textItem, @NotNull UIContextMenuInteractionAnimating animator)Informs the delegate that a text item menu is about to be dismissed with the specified animator.voidtextViewWillDismissEditMenuWithAnimator(@NotNull UITextView textView, @NotNull UIEditMenuInteractionAnimating animator)Called when the text view is about to dismiss the edit menu.voidtextViewWillPresentEditMenuWithAnimator(@NotNull UITextView textView, @NotNull UIEditMenuInteractionAnimating animator)Called when the text view is about to present the edit menu.static booleanuseStoredAccessor()Deprecated.voidvalidateContent()Calls -isContentValid immediately, performs other internal validation, then updates the enable state of the Post button appropriately.static longversion_static()@Nullable UIViewviewForZoomingInScrollView(@NotNull UIScrollView scrollView)return a view that will be scaled.-
Methods inherited from class apple.uikit.UIViewController
activePresentationController, addChildViewController, additionalSafeAreaInsets, addKeyCommand, allowedChildViewControllersForUnwindingFromSource, applicationFinishedRestoringState, automaticallyAdjustsScrollViewInsets, automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers, beginAppearanceTransitionAnimated, beginRequestWithExtensionContext, bottomLayoutGuide, canPerformUnwindSegueActionFromViewControllerSender, canPerformUnwindSegueActionFromViewControllerWithSender, childViewControllerContainingSegueSource, childViewControllerForHomeIndicatorAutoHidden, childViewControllerForPointerLock, childViewControllerForScreenEdgesDeferringSystemGestures, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, collapseSecondaryViewControllerForSplitViewController, contentScrollViewForEdge, contentSizeForViewInPopover, contentUnavailableConfiguration, contentUnavailableConfigurationState, decodeRestorableStateWithCoder, definesPresentationContext, didAnimateFirstHalfOfRotationToInterfaceOrientation, didMoveToParentViewController, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, didUpdateFocusInContextWithAnimationCoordinator, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissMoviePlayerViewControllerAnimated, dismissViewControllerAnimatedCompletion, edgesForExtendedLayout, editButtonItem, encodeRestorableStateWithCoder, encodeWithCoder, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, extensionContext, focusGroupIdentifier, focusItemContainer, hidesBottomBarWhenPushed, interactionActivityTrackingBaseName, interfaceOrientation, isBeingDismissed, isBeingPresented, isEditing, isModalInPopover, isModalInPresentation, isMovingFromParentViewController, isMovingToParentViewController, isViewLoaded, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, modalPresentationStyle, modalTransitionStyle, modalViewController, navigationController, navigationItem, nibBundle, nibName, objectRestorationClass, overrideTraitCollectionForChildViewController, overrideUserInterfaceStyle, parentFocusEnvironment, parentViewController, performsActionsWhilePresentingModally, performSegueWithIdentifierSender, popoverPresentationController, preferredContentSize, preferredContentSizeDidChangeForChildContentContainer, preferredFocusedView, preferredFocusEnvironments, preferredInterfaceOrientationForPresentation, preferredScreenEdgesDeferringSystemGestures, preferredStatusBarStyle, preferredStatusBarUpdateAnimation, prefersHomeIndicatorAutoHidden, prefersPointerLocked, prefersStatusBarHidden, prepareForSegueSender, presentationController, presentedViewController, presentingViewController, presentModalViewControllerAnimated, presentMoviePlayerViewControllerAnimated, presentViewControllerAnimatedCompletion, previewActionItems, providesPresentationContextTransitionStyle, registerForPreviewingWithDelegateSourceView, registerForTraitChangesWithAction, registerForTraitChangesWithHandler, registerForTraitChangesWithTargetAction, removeFromParentViewController, removeKeyCommand, restorationClass, restorationIdentifier, restorationParent, restoresFocusAfterTransition, rotatingFooterView, rotatingHeaderView, searchDisplayController, segueForUnwindingToViewControllerFromViewControllerIdentifier, separateSecondaryViewControllerForSplitViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentScrollViewForEdge, setContentSizeForViewInPopover, setContentUnavailableConfiguration, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditingAnimated, setExtendedLayoutIncludesOpaqueBars, setFocusGroupIdentifier, setHidesBottomBarWhenPushed, setInteractionActivityTrackingBaseName, setModalInPopover, setModalInPresentation, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateContentUnavailableConfiguration, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfPrefersPointerLocked, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setNeedsUpdateOfSupportedInterfaceOrientations, setOverrideTraitCollectionForChildViewController, setOverrideUserInterfaceStyle, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass, setRestorationClass_unsafe, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItemsAnimated, setTransitioningDelegate, setTransitioningDelegate_unsafe, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, sheetPresentationController, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifierSender, shouldUpdateFocusInContext, showDetailViewControllerSender, showViewControllerSender, sizeForChildContentContainerWithParentContainerSize, splitViewController, storyboard, supportedInterfaceOrientations, systemLayoutFittingSizeDidChangeForChildContentContainer, systemMinimumLayoutMargins, tabBarController, tabBarItem, targetViewControllerForActionSender, title, toolbarItems, topLayoutGuide, traitCollection, traitCollectionDidChange, traitOverrides, transitionCoordinator, transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion, transitioningDelegate, unregisterForPreviewingWithContext, unregisterForTraitChanges, unwindForSegueTowardsViewController, updateContentUnavailableConfigurationUsingState, updateFocusIfNeeded, updateTraitsIfNeeded, updateViewConstraints, view, viewControllerForUnwindSegueActionFromViewControllerWithSender, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewIsAppearing, viewLayoutMarginsDidChange, viewRespectsSystemMinimumLayoutMargins, viewSafeAreaInsetsDidChange, viewWillAppear, viewWillDisappear, viewWillLayoutSubviews, viewWillTransitionToSizeWithTransitionCoordinator, viewWillUnload, wantsFullScreenLayout, willAnimateFirstHalfOfRotationToInterfaceOrientationDuration, willAnimateRotationToInterfaceOrientationDuration, willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration, willMoveToParentViewController, willRotateToInterfaceOrientationDuration, willTransitionToTraitCollectionWithTransitionCoordinator
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, duplicate, editingInteractionConfiguration, export, find, findAndReplace, findNext, findPrevious, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, move, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, rename, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, 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()
-
alloc
public static SLComposeServiceViewController alloc()
-
allocWithZone
public static SLComposeServiceViewController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attemptRotationToDeviceOrientation
@Deprecated public static void attemptRotationToDeviceOrientation()
Deprecated.
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
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)
-
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()
-
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)
-
new_objc
public static SLComposeServiceViewController new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
autoCompletionViewController
public UIViewController autoCompletionViewController()
A view controller whose view replaces the configuration item table, sitting just below the text view. Defaults to nil. Set this to a non-nil view controller to implement a mentions picker or something similar. The view controller should set preferredContentSize appropriately. SLComposeServiceViewController observes changes to that property and animates sheet size changes as necessary. Set it to nil to remove your view controller, thus restoring the configuration item table. SLComposeServiceViewController animates the addition/removal of the view controller's view, as appropriate.
-
cancel
public void cancel()
Triggers an animated dismissal of the sheet, and then calls -didSelectCancel. Subclasses do not typically need to call this manually, but may choose to in response to a catastrophic failure during the user's interaction with the sheet. Subclasses should not need to override this.
-
charactersRemaining
public NSNumber charactersRemaining()
Set/change this to something non-nil to cause the character count view to appear/redraw. This is useful for services that have a character count limit on their posts. Defaults to nil.
-
configurationItems
public NSArray<?> configurationItems()
Subclasses should implement this, and return an array of SLComposeSheetConfigurationItem instances, if if needs to display configuration items in the sheet. Defaults to nil.
-
contentText
public java.lang.String contentText()
Convenience. This returns the current text from the textView.
-
didSelectCancel
public void didSelectCancel()
Called after the cancel animation has finished (in response to the user selecting the Cancel button, or someone calling -cancel). The default implementation calls the extensionContext's -cancelRequestWithError: method with an NSError/NSUserCancelledError. Subclasses may override this in order to customize the extensionContext completion.
-
didSelectPost
public void didSelectPost()
Called after the post animation has finished (in response to the user selecting the Post button). The default implementation calls the extensionContext's -completeRequestReturningItems:completionHandler: method with nil. Subclasses must override this in order to peform the post, based on contentText and any attachments. Subclasses may call super in order to leverage the default completion behavior; if a subclass does not call super, it must call extensionContext's completion method manually.
-
init
public SLComposeServiceViewController init()
- Overrides:
initin classUIViewController
-
initWithCoder
public SLComposeServiceViewController initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIViewController
-
initWithNibNameBundle
public SLComposeServiceViewController initWithNibNameBundle(@Nullable @Nullable java.lang.String nibNameOrNil, @Nullable @Nullable NSBundle nibBundleOrNil)
Description copied from class:UIViewControllerThe designated initializer. If you subclass UIViewController, you must call the super implementation of this method, even if you aren't using a NIB. (As a convenience, the default init method will do this for you, and specify nil for both of this methods arguments.) In the specified NIB, the File's Owner proxy should have its class set to your view controller subclass, with the view outlet connected to the main view. If you invoke this method with a nil nib name, then this class' -loadView method will attempt to load a NIB whose name is the same as your view controller's class. If no such NIB in fact exists then you must either call -setView: before -view is invoked, or override the -loadView method to set up your views programatically.- Overrides:
initWithNibNameBundlein classUIViewController
-
isContentValid
public boolean isContentValid()
Called automatically after each text change to help determine the enable state of the Post button, and to give the subclass a chance to update charactersRemaining. Defaults to YES. Subclasses should override this, and return whether contentText and attachments are currently valid for posting.
-
loadPreviewView
public UIView loadPreviewView()
Called when it's time to create a view suitable for previewing the attachments on the extensionContext. Defaults to returning a UIView instance appropriate to the set of attachments in the extensionContext, or nil if a preview is unneccessary for the extensionContext. Subclasses can override this to supply a preview view of their own choosing for the set of attachments on the extensionContext.
-
placeholder
public java.lang.String placeholder()
When textView is empty, this string is displayed instead. NOTE: This uses the iOS naming convention: "placeholder" vs. "placeholderString" on OS X.
-
popConfigurationViewController
public void popConfigurationViewController()
Dismisses the current configuration view controller.
-
presentationAnimationDidFinish
public void presentationAnimationDidFinish()
Called when the sheet presentation animation is finished. Subclasses should implement this to begin performing any expensive work (e.g., messaging a server), instead of during initialization, -viewWillAppear, or -viewDidAppear.
-
pushConfigurationViewController
public void pushConfigurationViewController(UIViewController viewController)
Presents a configuration view controller. Typically called from a configuration item's tapHandler. Only one configuration view controller is allowed at a time. The pushed view controller should set preferredContentSize appropriately. SLComposeServiceViewController observes changes to that property and animates sheet size changes as necessary.
-
reloadConfigurationItems
public void reloadConfigurationItems()
Forces a reload of the configuration items table. This is typically only necessary for subclasses that determine their configuration items in a deferred manner (for example, in -presentationAnimationDidFinish). You do not need to call this after changing a configuration item property; the base class detects and reacts to that automatically.
-
scrollViewDidEndDecelerating
public void scrollViewDidEndDecelerating(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled when scroll view grinds to a halt- Specified by:
scrollViewDidEndDeceleratingin interfaceUIScrollViewDelegate
-
scrollViewDidEndDraggingWillDecelerate
public void scrollViewDidEndDraggingWillDecelerate(@NotNull @NotNull UIScrollView scrollView, boolean decelerate)Description copied from interface:UIScrollViewDelegatecalled on finger up if the user dragged. decelerate is true if it will continue moving afterwards- Specified by:
scrollViewDidEndDraggingWillDeceleratein interfaceUIScrollViewDelegate
-
scrollViewDidEndScrollingAnimation
public void scrollViewDidEndScrollingAnimation(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled when setContentOffset/scrollRectVisible:animated: finishes. not called if not animating- Specified by:
scrollViewDidEndScrollingAnimationin interfaceUIScrollViewDelegate
-
scrollViewDidEndZoomingWithViewAtScale
public void scrollViewDidEndZoomingWithViewAtScale(@NotNull @NotNull UIScrollView scrollView, @Nullable @Nullable UIView view, double scale)Description copied from interface:UIScrollViewDelegatescale between minimum and maximum. called after any 'bounce' animations- Specified by:
scrollViewDidEndZoomingWithViewAtScalein interfaceUIScrollViewDelegate
-
scrollViewDidScroll
public void scrollViewDidScroll(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegateany offset changes- Specified by:
scrollViewDidScrollin interfaceUIScrollViewDelegate
-
scrollViewDidScrollToTop
public void scrollViewDidScrollToTop(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled when scrolling animation finished. may be called immediately if already at top- Specified by:
scrollViewDidScrollToTopin interfaceUIScrollViewDelegate
-
scrollViewDidZoom
public void scrollViewDidZoom(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegateany zoom scale changes API-Since: 3.2- Specified by:
scrollViewDidZoomin interfaceUIScrollViewDelegate
-
scrollViewShouldScrollToTop
public boolean scrollViewShouldScrollToTop(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatereturn a yes if you want to scroll to the top. if not defined, assumes YES- Specified by:
scrollViewShouldScrollToTopin interfaceUIScrollViewDelegate
-
scrollViewWillBeginDecelerating
public void scrollViewWillBeginDecelerating(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled on finger up as we are moving- Specified by:
scrollViewWillBeginDeceleratingin interfaceUIScrollViewDelegate
-
scrollViewWillBeginDragging
public void scrollViewWillBeginDragging(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegatecalled on start of dragging (may require some time and or distance to move)- Specified by:
scrollViewWillBeginDraggingin interfaceUIScrollViewDelegate
-
scrollViewWillBeginZoomingWithView
public void scrollViewWillBeginZoomingWithView(@NotNull @NotNull UIScrollView scrollView, @Nullable @Nullable UIView view)Description copied from interface:UIScrollViewDelegatecalled before the scroll view begins zooming its content API-Since: 3.2- Specified by:
scrollViewWillBeginZoomingWithViewin interfaceUIScrollViewDelegate
-
scrollViewWillEndDraggingWithVelocityTargetContentOffset
public void scrollViewWillEndDraggingWithVelocityTargetContentOffset(@NotNull @NotNull UIScrollView scrollView, CGPoint velocity, @NotNull @NotNull CGPoint targetContentOffset)Description copied from interface:UIScrollViewDelegatecalled on finger up if the user dragged. velocity is in points/millisecond. targetContentOffset may be changed to adjust where the scroll view comes to rest API-Since: 5.0- Specified by:
scrollViewWillEndDraggingWithVelocityTargetContentOffsetin interfaceUIScrollViewDelegate
-
setAutoCompletionViewController
public void setAutoCompletionViewController(UIViewController value)
A view controller whose view replaces the configuration item table, sitting just below the text view. Defaults to nil. Set this to a non-nil view controller to implement a mentions picker or something similar. The view controller should set preferredContentSize appropriately. SLComposeServiceViewController observes changes to that property and animates sheet size changes as necessary. Set it to nil to remove your view controller, thus restoring the configuration item table. SLComposeServiceViewController animates the addition/removal of the view controller's view, as appropriate.
-
setCharactersRemaining
public void setCharactersRemaining(NSNumber value)
Set/change this to something non-nil to cause the character count view to appear/redraw. This is useful for services that have a character count limit on their posts. Defaults to nil.
-
setPlaceholder
public void setPlaceholder(java.lang.String value)
When textView is empty, this string is displayed instead. NOTE: This uses the iOS naming convention: "placeholder" vs. "placeholderString" on OS X.
-
textView
public UITextView textView()
-
textViewShouldChangeTextInRangeReplacementText
public boolean textViewShouldChangeTextInRangeReplacementText(@NotNull @NotNull UITextView textView, NSRange range, @NotNull @NotNull java.lang.String text)- Specified by:
textViewShouldChangeTextInRangeReplacementTextin interfaceUITextViewDelegate
-
textViewShouldInteractWithTextAttachmentInRange
@Deprecated public boolean textViewShouldInteractWithTextAttachmentInRange(@NotNull @NotNull UITextView textView, @NotNull @NotNull NSTextAttachment textAttachment, NSRange characterRange)Deprecated.Description copied from interface:UITextViewDelegateAPI-Since: 7.0 Deprecated-Since: 10.0- Specified by:
textViewShouldInteractWithTextAttachmentInRangein interfaceUITextViewDelegate
-
textViewShouldInteractWithTextAttachmentInRangeInteraction
@Deprecated public boolean textViewShouldInteractWithTextAttachmentInRangeInteraction(@NotNull @NotNull UITextView textView, @NotNull @NotNull NSTextAttachment textAttachment, NSRange characterRange, long interaction)Deprecated.Description copied from interface:UITextViewDelegateAPI-Since: 10.0 Deprecated-Since: 17.0 Deprecated-Message: Replaced by primaryActionForTextItem: and menuConfigurationForTextItem: for additional customization options.- Specified by:
textViewShouldInteractWithTextAttachmentInRangeInteractionin interfaceUITextViewDelegate
-
textViewShouldInteractWithURLInRange
@Deprecated public boolean textViewShouldInteractWithURLInRange(@NotNull @NotNull UITextView textView, @NotNull @NotNull NSURL URL, NSRange characterRange)Deprecated.Description copied from interface:UITextViewDelegateAPI-Since: 7.0 Deprecated-Since: 10.0- Specified by:
textViewShouldInteractWithURLInRangein interfaceUITextViewDelegate
-
textViewShouldInteractWithURLInRangeInteraction
@Deprecated public boolean textViewShouldInteractWithURLInRangeInteraction(@NotNull @NotNull UITextView textView, @NotNull @NotNull NSURL URL, NSRange characterRange, long interaction)Deprecated.Description copied from interface:UITextViewDelegateAPI-Since: 10.0 Deprecated-Since: 17.0 Deprecated-Message: Replaced by primaryActionForTextItem: and menuConfigurationForTextItem: for additional customization options.- Specified by:
textViewShouldInteractWithURLInRangeInteractionin interfaceUITextViewDelegate
-
textViewDidBeginEditing
public void textViewDidBeginEditing(@NotNull @NotNull UITextView textView)- Specified by:
textViewDidBeginEditingin interfaceUITextViewDelegate
-
textViewDidChange
public void textViewDidChange(@NotNull @NotNull UITextView textView)- Specified by:
textViewDidChangein interfaceUITextViewDelegate
-
textViewDidChangeSelection
public void textViewDidChangeSelection(@NotNull @NotNull UITextView textView)- Specified by:
textViewDidChangeSelectionin interfaceUITextViewDelegate
-
textViewDidEndEditing
public void textViewDidEndEditing(@NotNull @NotNull UITextView textView)- Specified by:
textViewDidEndEditingin interfaceUITextViewDelegate
-
textViewShouldBeginEditing
public boolean textViewShouldBeginEditing(@NotNull @NotNull UITextView textView)- Specified by:
textViewShouldBeginEditingin interfaceUITextViewDelegate
-
textViewShouldEndEditing
public boolean textViewShouldEndEditing(@NotNull @NotNull UITextView textView)- Specified by:
textViewShouldEndEditingin interfaceUITextViewDelegate
-
validateContent
public void validateContent()
Calls -isContentValid immediately, performs other internal validation, then updates the enable state of the Post button appropriately. Subclasses should call this whenever they change data used as part of validity checking in their implementation of -isContentValid.
-
viewForZoomingInScrollView
@Nullable public @Nullable UIView viewForZoomingInScrollView(@NotNull @NotNull UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegatereturn a view that will be scaled. if delegate returns nil, nothing happens- Specified by:
viewForZoomingInScrollViewin interfaceUIScrollViewDelegate
-
scrollViewDidChangeAdjustedContentInset
public void scrollViewDidChangeAdjustedContentInset(@NotNull @NotNull UIScrollView scrollView)Description copied from interface:UIScrollViewDelegateAlso see -[UIScrollView adjustedContentInsetDidChange] API-Since: 11.0- Specified by:
scrollViewDidChangeAdjustedContentInsetin interfaceUIScrollViewDelegate
-
textViewEditMenuForTextInRangeSuggestedActions
@Nullable public @Nullable UIMenu textViewEditMenuForTextInRangeSuggestedActions(@NotNull @NotNull UITextView textView, NSRange range, @NotNull @NotNull NSArray<? extends UIMenuElement> suggestedActions)
Description copied from interface:UITextViewDelegateAsks the delegate for the menu to be shown for the specified text range.- Specified by:
textViewEditMenuForTextInRangeSuggestedActionsin interfaceUITextViewDelegate- Parameters:
textView- The text view requesting the menu.range- 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
-
textViewWillDismissEditMenuWithAnimator
public void textViewWillDismissEditMenuWithAnimator(@NotNull @NotNull UITextView textView, @NotNull @NotNull UIEditMenuInteractionAnimating animator)Description copied from interface:UITextViewDelegateCalled when the text view is about to dismiss the edit menu.- Specified by:
textViewWillDismissEditMenuWithAnimatorin interfaceUITextViewDelegate- Parameters:
textView- The text view displaying the menu.animator- Dismissal animator. Add animations to this object to run them alongside the dismissal transition. API-Since: 16.0
-
textViewWillPresentEditMenuWithAnimator
public void textViewWillPresentEditMenuWithAnimator(@NotNull @NotNull UITextView textView, @NotNull @NotNull UIEditMenuInteractionAnimating animator)Description copied from interface:UITextViewDelegateCalled when the text view is about to present the edit menu.- Specified by:
textViewWillPresentEditMenuWithAnimatorin interfaceUITextViewDelegate- Parameters:
textView- The text view displaying the menu.animator- Appearance animator. Add animations to this object to run them alongside the appearance transition. API-Since: 16.0
-
textViewMenuConfigurationForTextItemDefaultMenu
@Nullable public @Nullable UITextItemMenuConfiguration textViewMenuConfigurationForTextItemDefaultMenu(@NotNull @NotNull UITextView textView, @NotNull @NotNull UITextItem textItem, @NotNull @NotNull UIMenu defaultMenu)
Description copied from interface:UITextViewDelegateAsks the delegate for the menu configuration to be performed when interacting with a text item.- Specified by:
textViewMenuConfigurationForTextItemDefaultMenuin interfaceUITextViewDelegate- Parameters:
textView- The text view requesting the menu.textItem- The text item for performing said action.defaultMenu- The default menu for the specified text item.- Returns:
- Return a menu configuration to be presented when the text item is interacted with. Return @c nil to prevent the menu from being presented. API-Since: 17.0
-
textViewPrimaryActionForTextItemDefaultAction
@Nullable public @Nullable UIAction textViewPrimaryActionForTextItemDefaultAction(@NotNull @NotNull UITextView textView, @NotNull @NotNull UITextItem textItem, @NotNull @NotNull UIAction defaultAction)
Description copied from interface:UITextViewDelegateAsks the delegate for the action to be performed when interacting with a text item. If a nil action is provided, the text view will request a menu to be presented on primary action if possible.- Specified by:
textViewPrimaryActionForTextItemDefaultActionin interfaceUITextViewDelegate- Parameters:
textView- The text view requesting the primary action.textItem- The text item for performing said action.defaultAction- The default action for the text item. Return this to perform the default action.- Returns:
- Return a UIAction to be performed when the text item is interacted with. Return @c nil to prevent the action from being performed. API-Since: 17.0
-
textViewTextItemMenuWillDisplayForTextItemAnimator
public void textViewTextItemMenuWillDisplayForTextItemAnimator(@NotNull @NotNull UITextView textView, @NotNull @NotNull UITextItem textItem, @NotNull @NotNull UIContextMenuInteractionAnimating animator)Description copied from interface:UITextViewDelegateInforms the delegate that a text item menu is about to be presented with the specified animator.- Specified by:
textViewTextItemMenuWillDisplayForTextItemAnimatorin interfaceUITextViewDelegate- Parameters:
textView- The text view showing the menu.textItem- The text item for performing said action.animator- Appearance animator. Add animations to this object to run them alongside the appearance transition. API-Since: 17.0
-
textViewTextItemMenuWillEndForTextItemAnimator
public void textViewTextItemMenuWillEndForTextItemAnimator(@NotNull @NotNull UITextView textView, @NotNull @NotNull UITextItem textItem, @NotNull @NotNull UIContextMenuInteractionAnimating animator)Description copied from interface:UITextViewDelegateInforms the delegate that a text item menu is about to be dismissed with the specified animator.- Specified by:
textViewTextItemMenuWillEndForTextItemAnimatorin interfaceUITextViewDelegate- Parameters:
textView- The text view showing the menu.textItem- The text item for performing said action.animator- Dismissal animator. Add animations to this object to run them alongside the dismissal transition. API-Since: 17.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-