Package apple.uikit
Class UISearchController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIViewController
-
- apple.uikit.UISearchController
-
- All Implemented Interfaces:
NSCoding,NSExtensionRequestHandling,NSObject,UIAppearanceContainer,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIStateRestoring,UITraitEnvironment,UIUserActivityRestoring,UIViewControllerAnimatedTransitioning,UIViewControllerTransitioningDelegate
public class UISearchController extends UIViewController implements UIViewControllerTransitioningDelegate, UIViewControllerAnimatedTransitioning
-
-
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 protectedUISearchController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static UISearchControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)voidanimateTransition(UIViewControllerContextTransitioning transitionContext)This method can only be a nop if the transition is interactive and not a percentDriven interactive transition.UIViewControllerAnimatedTransitioninganimationControllerForDismissedController(UIViewController dismissed)UIViewControllerAnimatedTransitioninganimationControllerForPresentedControllerPresentingControllerSourceController(UIViewController presented, UIViewController presenting, UIViewController source)voidanimationEnded(boolean transitionCompleted)This is a convenience and if implemented will be invoked by the system when the transition context's completeTransition: method is invoked.static voidattemptRotationToDeviceOrientation()static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)booleanautomaticallyShowsCancelButton()Default YESbooleanautomaticallyShowsScopeBar()Defaults to YESbooleanautomaticallyShowsSearchResultsController()When true, UISearchController will automatically show its results controller based on the contents of its text property.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(java.lang.String identifier)static java.lang.StringdebugDescription_static()UISearchControllerDelegatedelegate()static java.lang.Stringdescription_static()booleandimsBackgroundDuringPresentation()default is YES, and has the same behavior as obscuresBackgroundDuringPresentation.static longhash_static()booleanhidesNavigationBarDuringPresentation()default is YESUISearchControllerinit()UISearchControllerinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERUISearchControllerinitWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)Creates a search controller without a results controllerUISearchControllerinitWithSearchResultsController(UIViewController searchResultsController)Pass nil if you wish to display search results in the same view that you are searching.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)UIViewControllerInteractiveTransitioninginteractionControllerForDismissal(UIViewControllerAnimatedTransitioning animator)UIViewControllerInteractiveTransitioninginteractionControllerForPresentation(UIViewControllerAnimatedTransitioning animator)UIViewImplicitlyAnimatinginterruptibleAnimatorForTransition(UIViewControllerContextTransitioning transitionContext)A conforming object implements this method if the transition it creates can be interrupted.booleanisActive()Setting this property to YES is a convenience method that performs a default presentation of the search controller appropriate for how the controller is configured.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()booleanobscuresBackgroundDuringPresentation()default is YES.static voidprepareInterstitialAds()UIPresentationControllerpresentationControllerForPresentedViewControllerPresentingViewControllerSourceViewController(UIViewController presented, UIViewController presenting, UIViewController source)static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)UISearchBarsearchBar()You are free to become the search bar's delegate to monitor for text changes and button presses.UIViewControllersearchResultsController()UISearchResultsUpdatingsearchResultsUpdater()The object responsible for updating the content of the searchResultsController.voidsetActive(boolean value)Setting this property to YES is a convenience method that performs a default presentation of the search controller appropriate for how the controller is configured.voidsetAutomaticallyShowsCancelButton(boolean value)Default YESvoidsetAutomaticallyShowsScopeBar(boolean value)Defaults to YESvoidsetAutomaticallyShowsSearchResultsController(boolean value)When true, UISearchController will automatically show its results controller based on the contents of its text property.voidsetDelegate(UISearchControllerDelegate value)voidsetDelegate_unsafe(UISearchControllerDelegate value)voidsetDimsBackgroundDuringPresentation(boolean value)default is YES, and has the same behavior as obscuresBackgroundDuringPresentation.voidsetHidesNavigationBarDuringPresentation(boolean value)default is YESvoidsetObscuresBackgroundDuringPresentation(boolean value)default is YES.voidsetSearchResultsUpdater(UISearchResultsUpdating value)The object responsible for updating the content of the searchResultsController.voidsetSearchResultsUpdater_unsafe(UISearchResultsUpdating value)The object responsible for updating the content of the searchResultsController.voidsetShowsSearchResultsController(boolean value)Set this property to directly control the visibility of the search results controller.static voidsetVersion_static(long aVersion)booleanshowsSearchResultsController()Set this property to directly control the visibility of the search results controller.static org.moe.natj.objc.Classsuperclass_static()doubletransitionDuration(UIViewControllerContextTransitioning transitionContext)This is used for percent driven interactive transitions, as well as for container controllers that have companion animations that might need to synchronize with the main animation.static longversion_static()-
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 UISearchController 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()
-
animateTransition
public void animateTransition(UIViewControllerContextTransitioning transitionContext)
Description copied from interface:UIViewControllerAnimatedTransitioningThis method can only be a nop if the transition is interactive and not a percentDriven interactive transition.- Specified by:
animateTransitionin interfaceUIViewControllerAnimatedTransitioning
-
animationControllerForDismissedController
public UIViewControllerAnimatedTransitioning animationControllerForDismissedController(UIViewController dismissed)
- Specified by:
animationControllerForDismissedControllerin interfaceUIViewControllerTransitioningDelegate
-
animationControllerForPresentedControllerPresentingControllerSourceController
public UIViewControllerAnimatedTransitioning animationControllerForPresentedControllerPresentingControllerSourceController(UIViewController presented, UIViewController presenting, UIViewController source)
-
animationEnded
public void animationEnded(boolean transitionCompleted)
Description copied from interface:UIViewControllerAnimatedTransitioningThis is a convenience and if implemented will be invoked by the system when the transition context's completeTransition: method is invoked.- Specified by:
animationEndedin interfaceUIViewControllerAnimatedTransitioning
-
delegate
public UISearchControllerDelegate delegate()
-
dimsBackgroundDuringPresentation
public boolean dimsBackgroundDuringPresentation()
default is YES, and has the same behavior as obscuresBackgroundDuringPresentation.
-
hidesNavigationBarDuringPresentation
public boolean hidesNavigationBarDuringPresentation()
default is YES
-
init
public UISearchController init()
- Overrides:
initin classUIViewController
-
initWithCoder
public UISearchController initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIViewController
-
initWithNibNameBundle
public UISearchController initWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
Creates a search controller without a results controller- Overrides:
initWithNibNameBundlein classUIViewController
-
initWithSearchResultsController
public UISearchController initWithSearchResultsController(UIViewController searchResultsController)
Pass nil if you wish to display search results in the same view that you are searching. This is not supported on tvOS; please provide a results controller on tvOS.
-
interactionControllerForDismissal
public UIViewControllerInteractiveTransitioning interactionControllerForDismissal(UIViewControllerAnimatedTransitioning animator)
- Specified by:
interactionControllerForDismissalin interfaceUIViewControllerTransitioningDelegate
-
interactionControllerForPresentation
public UIViewControllerInteractiveTransitioning interactionControllerForPresentation(UIViewControllerAnimatedTransitioning animator)
- Specified by:
interactionControllerForPresentationin interfaceUIViewControllerTransitioningDelegate
-
interruptibleAnimatorForTransition
public UIViewImplicitlyAnimating interruptibleAnimatorForTransition(UIViewControllerContextTransitioning transitionContext)
Description copied from interface:UIViewControllerAnimatedTransitioningA conforming object implements this method if the transition it creates can be interrupted. For example, it could return an instance of a UIViewPropertyAnimator. It is expected that this method will return the same instance for the life of a transition.- Specified by:
interruptibleAnimatorForTransitionin interfaceUIViewControllerAnimatedTransitioning
-
isActive
public boolean isActive()
Setting this property to YES is a convenience method that performs a default presentation of the search controller appropriate for how the controller is configured. Implement -presentSearchController: if the default presentation is not adequate.
-
setActive
public void setActive(boolean value)
Setting this property to YES is a convenience method that performs a default presentation of the search controller appropriate for how the controller is configured. Implement -presentSearchController: if the default presentation is not adequate.
-
obscuresBackgroundDuringPresentation
public boolean obscuresBackgroundDuringPresentation()
default is YES. On tvOS, defaults to NO when contained in UISearchContainerViewController.
-
presentationControllerForPresentedViewControllerPresentingViewControllerSourceViewController
public UIPresentationController presentationControllerForPresentedViewControllerPresentingViewControllerSourceViewController(UIViewController presented, UIViewController presenting, UIViewController source)
-
searchBar
public UISearchBar searchBar()
You are free to become the search bar's delegate to monitor for text changes and button presses.
-
searchResultsController
public UIViewController searchResultsController()
-
searchResultsUpdater
public UISearchResultsUpdating searchResultsUpdater()
The object responsible for updating the content of the searchResultsController.
-
setDelegate_unsafe
public void setDelegate_unsafe(UISearchControllerDelegate value)
-
setDelegate
public void setDelegate(UISearchControllerDelegate value)
-
setDimsBackgroundDuringPresentation
public void setDimsBackgroundDuringPresentation(boolean value)
default is YES, and has the same behavior as obscuresBackgroundDuringPresentation.
-
setHidesNavigationBarDuringPresentation
public void setHidesNavigationBarDuringPresentation(boolean value)
default is YES
-
setObscuresBackgroundDuringPresentation
public void setObscuresBackgroundDuringPresentation(boolean value)
default is YES. On tvOS, defaults to NO when contained in UISearchContainerViewController.
-
setSearchResultsUpdater_unsafe
public void setSearchResultsUpdater_unsafe(UISearchResultsUpdating value)
The object responsible for updating the content of the searchResultsController.
-
setSearchResultsUpdater
public void setSearchResultsUpdater(UISearchResultsUpdating value)
The object responsible for updating the content of the searchResultsController.
-
transitionDuration
public double transitionDuration(UIViewControllerContextTransitioning transitionContext)
Description copied from interface:UIViewControllerAnimatedTransitioningThis is used for percent driven interactive transitions, as well as for container controllers that have companion animations that might need to synchronize with the main animation.- Specified by:
transitionDurationin interfaceUIViewControllerAnimatedTransitioning
-
automaticallyShowsCancelButton
public boolean automaticallyShowsCancelButton()
Default YES
-
automaticallyShowsScopeBar
public boolean automaticallyShowsScopeBar()
Defaults to YES
-
automaticallyShowsSearchResultsController
public boolean automaticallyShowsSearchResultsController()
When true, UISearchController will automatically show its results controller based on the contents of its text property. Defaults to true. Setting the showsSearchResultsController property will change this property to false.
-
setAutomaticallyShowsCancelButton
public void setAutomaticallyShowsCancelButton(boolean value)
Default YES
-
setAutomaticallyShowsScopeBar
public void setAutomaticallyShowsScopeBar(boolean value)
Defaults to YES
-
setAutomaticallyShowsSearchResultsController
public void setAutomaticallyShowsSearchResultsController(boolean value)
When true, UISearchController will automatically show its results controller based on the contents of its text property. Defaults to true. Setting the showsSearchResultsController property will change this property to false.
-
setShowsSearchResultsController
public void setShowsSearchResultsController(boolean value)
Set this property to directly control the visibility of the search results controller. Setting this property changes the automaticallyShowsSearchResultsController property to false.
-
showsSearchResultsController
public boolean showsSearchResultsController()
Set this property to directly control the visibility of the search results controller. Setting this property changes the automaticallyShowsSearchResultsController property to false.
-
-