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,UIAppearanceContainer,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIScrollViewDelegate,UIStateRestoring,UITextViewDelegate,UITraitEnvironment,UIUserActivityRestoring
public class SLComposeServiceViewController extends UIViewController implements UITextViewDelegate
-
-
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.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSLComposeServiceViewController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static SLComposeServiceViewControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static voidattemptRotationToDeviceOrientation()UIViewControllerautoCompletionViewController()A view controller whose view replaces the configuration item table, sitting just below the text view.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)voidcancel()Triggers an animated dismissal of the sheet, and then calls -didSelectCancel.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)NSNumbercharactersRemaining()Set/change this to something non-nil to cause the character count view to appear/redraw.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(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(NSCoder coder)NS_DESIGNATED_INITIALIZERSLComposeServiceViewControllerinitWithNibNameBundle(java.lang.String nibNameOrNil, 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 NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)UIViewloadPreviewView()Called when it's time to create a view suitable for previewing the attachments on the extensionContext.static java.lang.Objectnew_objc()java.lang.Stringplaceholder()When textView is empty, this string is displayed instead.voidpopConfigurationViewController()Dismisses the current configuration view controller.static voidprepareInterstitialAds()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(UIScrollView scrollView)Also see -[UIScrollView adjustedContentInsetDidChange]voidscrollViewDidEndDecelerating(UIScrollView scrollView)called when scroll view grinds to a haltvoidscrollViewDidEndDraggingWillDecelerate(UIScrollView scrollView, boolean decelerate)called on finger up if the user dragged. decelerate is true if it will continue moving afterwardsvoidscrollViewDidEndScrollingAnimation(UIScrollView scrollView)called when setContentOffset/scrollRectVisible:animated: finishes. not called if not animatingvoidscrollViewDidEndZoomingWithViewAtScale(UIScrollView scrollView, UIView view, double scale)scale between minimum and maximum. called after any 'bounce' animationsvoidscrollViewDidScroll(UIScrollView scrollView)any offset changesvoidscrollViewDidScrollToTop(UIScrollView scrollView)called when scrolling animation finished. may be called immediately if already at topvoidscrollViewDidZoom(UIScrollView scrollView)any zoom scale changesbooleanscrollViewShouldScrollToTop(UIScrollView scrollView)return a yes if you want to scroll to the top. if not defined, assumes YESvoidscrollViewWillBeginDecelerating(UIScrollView scrollView)called on finger up as we are movingvoidscrollViewWillBeginDragging(UIScrollView scrollView)called on start of dragging (may require some time and or distance to move)voidscrollViewWillBeginZoomingWithView(UIScrollView scrollView, UIView view)called before the scroll view begins zooming its contentvoidscrollViewWillEndDraggingWithVelocityTargetContentOffset(UIScrollView scrollView, CGPoint velocity, CGPoint targetContentOffset)called on finger up if the user dragged. velocity is in points/millisecond. targetContentOffset may be changed to adjust where the scroll view comes to restvoidsetAutoCompletionViewController(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(UITextView textView)voidtextViewDidChange(UITextView textView)voidtextViewDidChangeSelection(UITextView textView)voidtextViewDidEndEditing(UITextView textView)booleantextViewShouldBeginEditing(UITextView textView)booleantextViewShouldChangeTextInRangeReplacementText(UITextView textView, NSRange range, java.lang.String text)booleantextViewShouldEndEditing(UITextView textView)booleantextViewShouldInteractWithTextAttachmentInRange(UITextView textView, NSTextAttachment textAttachment, NSRange characterRange)booleantextViewShouldInteractWithTextAttachmentInRangeInteraction(UITextView textView, NSTextAttachment textAttachment, NSRange characterRange, long interaction)booleantextViewShouldInteractWithURLInRange(UITextView textView, NSURL URL, NSRange characterRange)booleantextViewShouldInteractWithURLInRangeInteraction(UITextView textView, NSURL URL, NSRange characterRange, long interaction)voidvalidateContent()Calls -isContentValid immediately, performs other internal validation, then updates the enable state of the Post button appropriately.static longversion_static()UIViewviewForZoomingInScrollView(UIScrollView scrollView)return a view that will be scaled. if delegate returns nil, nothing happens-
Methods inherited from class apple.uikit.UIViewController
addChildViewController, additionalSafeAreaInsets, addKeyCommand, allowedChildViewControllersForUnwindingFromSource, applicationFinishedRestoringState, automaticallyAdjustsScrollViewInsets, automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers, beginAppearanceTransitionAnimated, beginRequestWithExtensionContext, bottomLayoutGuide, canDisplayBannerAds, canPerformUnwindSegueActionFromViewControllerSender, canPerformUnwindSegueActionFromViewControllerWithSender, childViewControllerContainingSegueSource, childViewControllerForHomeIndicatorAutoHidden, childViewControllerForPointerLock, childViewControllerForScreenEdgesDeferringSystemGestures, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, collapseSecondaryViewControllerForSplitViewController, contentSizeForViewInPopover, decodeRestorableStateWithCoder, definesPresentationContext, didAnimateFirstHalfOfRotationToInterfaceOrientation, didMoveToParentViewController, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, didUpdateFocusInContextWithAnimationCoordinator, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissMoviePlayerViewControllerAnimated, dismissViewControllerAnimatedCompletion, edgesForExtendedLayout, editButtonItem, encodeRestorableStateWithCoder, encodeWithCoder, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, extensionContext, focusGroupIdentifier, focusItemContainer, hidesBottomBarWhenPushed, interfaceOrientation, interstitialPresentationPolicy, isBeingDismissed, isBeingPresented, isDisplayingBannerAd, isEditing, isModalInPopover, isModalInPresentation, isMovingFromParentViewController, isMovingToParentViewController, isPresentingFullScreenAd, isViewLoaded, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, modalPresentationStyle, modalTransitionStyle, modalViewController, navigationController, navigationItem, nibBundle, nibName, objectRestorationClass, originalContentView, 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, removeFromParentViewController, removeKeyCommand, requestInterstitialAdPresentation, restorationClass, restorationIdentifier, restorationParent, restoresFocusAfterTransition, rotatingFooterView, rotatingHeaderView, searchDisplayController, segueForUnwindingToViewControllerFromViewControllerIdentifier, separateSecondaryViewControllerForSplitViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setCanDisplayBannerAds, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditingAnimated, setExtendedLayoutIncludesOpaqueBars, setHidesBottomBarWhenPushed, setInterstitialPresentationPolicy, setModalInPopover, setModalInPresentation, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfPrefersPointerLocked, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setOverrideTraitCollectionForChildViewController, setOverrideUserInterfaceStyle, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass, setRestorationClass_unsafe, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItemsAnimated, setTransitioningDelegate, setTransitioningDelegate_unsafe, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifierSender, shouldPresentInterstitialAd, shouldUpdateFocusInContext, showDetailViewControllerSender, showViewControllerSender, sizeForChildContentContainerWithParentContainerSize, splitViewController, storyboard, supportedInterfaceOrientations, systemLayoutFittingSizeDidChangeForChildContentContainer, systemMinimumLayoutMargins, tabBarController, tabBarItem, targetViewControllerForActionSender, title, toolbarItems, topLayoutGuide, traitCollection, traitCollectionDidChange, transitionCoordinator, transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion, transitioningDelegate, unregisterForPreviewingWithContext, unwindForSegueTowardsViewController, updateFocusIfNeeded, updateViewConstraints, view, viewControllerForUnwindSegueActionFromViewControllerWithSender, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, 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, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static SLComposeServiceViewController alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attemptRotationToDeviceOrientation
public static void attemptRotationToDeviceOrientation()
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
prepareInterstitialAds
public static void prepareInterstitialAds()
-
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(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIViewController
-
initWithNibNameBundle
public SLComposeServiceViewController initWithNibNameBundle(java.lang.String nibNameOrNil, 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(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegatecalled when scroll view grinds to a halt- Specified by:
scrollViewDidEndDeceleratingin interfaceUIScrollViewDelegate
-
scrollViewDidEndDraggingWillDecelerate
public void scrollViewDidEndDraggingWillDecelerate(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(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(UIScrollView scrollView, 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(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegateany offset changes- Specified by:
scrollViewDidScrollin interfaceUIScrollViewDelegate
-
scrollViewDidScrollToTop
public void scrollViewDidScrollToTop(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(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegateany zoom scale changes- Specified by:
scrollViewDidZoomin interfaceUIScrollViewDelegate
-
scrollViewShouldScrollToTop
public boolean scrollViewShouldScrollToTop(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(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegatecalled on finger up as we are moving- Specified by:
scrollViewWillBeginDeceleratingin interfaceUIScrollViewDelegate
-
scrollViewWillBeginDragging
public void scrollViewWillBeginDragging(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(UIScrollView scrollView, UIView view)
Description copied from interface:UIScrollViewDelegatecalled before the scroll view begins zooming its content- Specified by:
scrollViewWillBeginZoomingWithViewin interfaceUIScrollViewDelegate
-
scrollViewWillEndDraggingWithVelocityTargetContentOffset
public void scrollViewWillEndDraggingWithVelocityTargetContentOffset(UIScrollView scrollView, CGPoint velocity, 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- 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(UITextView textView, NSRange range, java.lang.String text)
- Specified by:
textViewShouldChangeTextInRangeReplacementTextin interfaceUITextViewDelegate
-
textViewShouldInteractWithTextAttachmentInRange
public boolean textViewShouldInteractWithTextAttachmentInRange(UITextView textView, NSTextAttachment textAttachment, NSRange characterRange)
- Specified by:
textViewShouldInteractWithTextAttachmentInRangein interfaceUITextViewDelegate
-
textViewShouldInteractWithTextAttachmentInRangeInteraction
public boolean textViewShouldInteractWithTextAttachmentInRangeInteraction(UITextView textView, NSTextAttachment textAttachment, NSRange characterRange, long interaction)
- Specified by:
textViewShouldInteractWithTextAttachmentInRangeInteractionin interfaceUITextViewDelegate
-
textViewShouldInteractWithURLInRange
public boolean textViewShouldInteractWithURLInRange(UITextView textView, NSURL URL, NSRange characterRange)
- Specified by:
textViewShouldInteractWithURLInRangein interfaceUITextViewDelegate
-
textViewShouldInteractWithURLInRangeInteraction
public boolean textViewShouldInteractWithURLInRangeInteraction(UITextView textView, NSURL URL, NSRange characterRange, long interaction)
- Specified by:
textViewShouldInteractWithURLInRangeInteractionin interfaceUITextViewDelegate
-
textViewDidBeginEditing
public void textViewDidBeginEditing(UITextView textView)
- Specified by:
textViewDidBeginEditingin interfaceUITextViewDelegate
-
textViewDidChange
public void textViewDidChange(UITextView textView)
- Specified by:
textViewDidChangein interfaceUITextViewDelegate
-
textViewDidChangeSelection
public void textViewDidChangeSelection(UITextView textView)
- Specified by:
textViewDidChangeSelectionin interfaceUITextViewDelegate
-
textViewDidEndEditing
public void textViewDidEndEditing(UITextView textView)
- Specified by:
textViewDidEndEditingin interfaceUITextViewDelegate
-
textViewShouldBeginEditing
public boolean textViewShouldBeginEditing(UITextView textView)
- Specified by:
textViewShouldBeginEditingin interfaceUITextViewDelegate
-
textViewShouldEndEditing
public boolean textViewShouldEndEditing(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
public UIView viewForZoomingInScrollView(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(UIScrollView scrollView)
Description copied from interface:UIScrollViewDelegateAlso see -[UIScrollView adjustedContentInsetDidChange]- Specified by:
scrollViewDidChangeAdjustedContentInsetin interfaceUIScrollViewDelegate
-
-