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,UIActivityItemsConfigurationProviding,UIAppearanceContainer,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIStateRestoring,UITraitChangeObservable,UITraitEnvironment,UIUserActivityRestoring,UIViewControllerAnimatedTransitioning,UIViewControllerTransitioningDelegate
public class UISearchController extends UIViewController implements UIViewControllerTransitioningDelegate, UIViewControllerAnimatedTransitioning
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 protectedUISearchController(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 UISearchControlleralloc()static UISearchControllerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)voidanimateTransition(@NotNull UIViewControllerContextTransitioning transitionContext)This method can only be a no-op if the transition is interactive and not a percentDriven interactive transition.@Nullable UIViewControllerAnimatedTransitioninganimationControllerForDismissedController(@NotNull UIViewController dismissed)@Nullable UIViewControllerAnimatedTransitioninganimationControllerForPresentedControllerPresentingControllerSourceController(@NotNull UIViewController presented, @NotNull UIViewController presenting, @NotNull 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()Deprecated.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)booleanautomaticallyShowsCancelButton()Default YES API-Since: 13.0booleanautomaticallyShowsScopeBar()Deprecated.booleanautomaticallyShowsSearchResultsController()When true, UISearchController will automatically show its results controller based on the contents of its text property.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)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(@NotNull java.lang.String identifier)static java.lang.StringdebugDescription_static()@Nullable UISearchControllerDelegatedelegate()static java.lang.Stringdescription_static()booleandimsBackgroundDuringPresentation()Deprecated.static longhash_static()booleanhidesNavigationBarDuringPresentation()default is YESbooleanignoresSearchSuggestionsForSearchBarPlacementStacked()Default NO.UISearchControllerinit()UISearchControllerinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERUISearchControllerinitWithNibNameBundle(@Nullable java.lang.String nibNameOrNil, @Nullable NSBundle nibBundleOrNil)Creates a search controller without a results controllerUISearchControllerinitWithSearchResultsController(@Nullable 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)@Nullable UIViewControllerInteractiveTransitioninginteractionControllerForDismissal(@NotNull UIViewControllerAnimatedTransitioning animator)@Nullable UIViewControllerInteractiveTransitioninginteractionControllerForPresentation(@NotNull UIViewControllerAnimatedTransitioning animator)@NotNull UIViewImplicitlyAnimatinginterruptibleAnimatorForTransition(@NotNull 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 @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static UISearchControllernew_objc()booleanobscuresBackgroundDuringPresentation()On iOS, default is NO for apps linked on iOS 15.0 and later, YES otherwise.@Nullable UIPresentationControllerpresentationControllerForPresentedViewControllerPresentingViewControllerSourceViewController(@NotNull UIViewController presented, @Nullable UIViewController presenting, @NotNull UIViewController source)API-Since: 8.0static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)longscopeBarActivation()Controls if and when the UISearchController shows and hides the scope bar However, UISearchBar will not show the scope bar if `scopeButtonTitles` contains fewer than two titles Defaults to `UISearchControllerScopeBarActivationAutomatic` `UISearchControllerScopeBarActivationAutomatic` is equivalent to earlier `automaticallyShowsScopeBar == YES` `UISearchControllerScopeBarActivationManual` is equivalent to earlier `automaticallyShowsScopeBar == NO` Similar to the behavior of `automaticallyShowsScopeBar`, setting the `showsScopeBar` property on the `searchController`'s `searchBar` will change `scopeBarActivation` to `UISearchControllerScopeBarActivationManual` API-Since: 16.0@NotNull UISearchBarsearchBar()You are free to become the search bar's delegate to monitor for text changes and button presses.longsearchBarPlacement()For inspecting the current placement of the search bar when the search controller has been assigned to a UINavigationItem API-Since: 16.0@Nullable UIViewControllersearchResultsController()@Nullable UISearchResultsUpdatingsearchResultsUpdater()The object responsible for updating the content of the searchResultsController.@Nullable NSArray<?>searchSuggestions()List of search hint objects to be displayed under keyboard on tvOS, as a menu under the search field when the search bar is placed inline on iOS 16, or as a list in front of the searchResultsController when the search bar is stacked.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 YES API-Since: 13.0voidsetAutomaticallyShowsScopeBar(boolean value)Deprecated.voidsetAutomaticallyShowsSearchResultsController(boolean value)When true, UISearchController will automatically show its results controller based on the contents of its text property.voidsetDelegate(@Nullable UISearchControllerDelegate value)voidsetDelegate_unsafe(@Nullable UISearchControllerDelegate value)voidsetDimsBackgroundDuringPresentation(boolean value)Deprecated.voidsetHidesNavigationBarDuringPresentation(boolean value)default is YESvoidsetIgnoresSearchSuggestionsForSearchBarPlacementStacked(boolean value)Default NO.voidsetObscuresBackgroundDuringPresentation(boolean value)On iOS, default is NO for apps linked on iOS 15.0 and later, YES otherwise.voidsetScopeBarActivation(long value)Controls if and when the UISearchController shows and hides the scope bar However, UISearchBar will not show the scope bar if `scopeButtonTitles` contains fewer than two titles Defaults to `UISearchControllerScopeBarActivationAutomatic` `UISearchControllerScopeBarActivationAutomatic` is equivalent to earlier `automaticallyShowsScopeBar == YES` `UISearchControllerScopeBarActivationManual` is equivalent to earlier `automaticallyShowsScopeBar == NO` Similar to the behavior of `automaticallyShowsScopeBar`, setting the `showsScopeBar` property on the `searchController`'s `searchBar` will change `scopeBarActivation` to `UISearchControllerScopeBarActivationManual` API-Since: 16.0voidsetSearchResultsUpdater(@Nullable UISearchResultsUpdating value)The object responsible for updating the content of the searchResultsController.voidsetSearchResultsUpdater_unsafe(@Nullable UISearchResultsUpdating value)The object responsible for updating the content of the searchResultsController.voidsetSearchSuggestions(@Nullable NSArray<?> value)List of search hint objects to be displayed under keyboard on tvOS, as a menu under the search field when the search bar is placed inline on iOS 16, or as a list in front of the searchResultsController when the search bar is stacked.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(@Nullable 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 booleanuseStoredAccessor()Deprecated.static longversion_static()-
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 UISearchController alloc()
-
allocWithZone
public static UISearchController 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 UISearchController 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()
-
animateTransition
public void animateTransition(@NotNull @NotNull UIViewControllerContextTransitioning transitionContext)Description copied from interface:UIViewControllerAnimatedTransitioningThis method can only be a no-op if the transition is interactive and not a percentDriven interactive transition.- Specified by:
animateTransitionin interfaceUIViewControllerAnimatedTransitioning
-
animationControllerForDismissedController
@Nullable public @Nullable UIViewControllerAnimatedTransitioning animationControllerForDismissedController(@NotNull @NotNull UIViewController dismissed)
- Specified by:
animationControllerForDismissedControllerin interfaceUIViewControllerTransitioningDelegate
-
animationControllerForPresentedControllerPresentingControllerSourceController
@Nullable public @Nullable UIViewControllerAnimatedTransitioning animationControllerForPresentedControllerPresentingControllerSourceController(@NotNull @NotNull UIViewController presented, @NotNull @NotNull UIViewController presenting, @NotNull @NotNull 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
@Nullable public @Nullable UISearchControllerDelegate delegate()
-
dimsBackgroundDuringPresentation
@Deprecated public boolean dimsBackgroundDuringPresentation()
Deprecated.default is YES, and has the same behavior as obscuresBackgroundDuringPresentation. API-Since: 8.0 Deprecated-Since: 12.0
-
hidesNavigationBarDuringPresentation
public boolean hidesNavigationBarDuringPresentation()
default is YES
-
init
public UISearchController init()
- Overrides:
initin classUIViewController
-
initWithCoder
public UISearchController initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIViewController
-
initWithNibNameBundle
public UISearchController initWithNibNameBundle(@Nullable @Nullable java.lang.String nibNameOrNil, @Nullable @Nullable NSBundle nibBundleOrNil)
Creates a search controller without a results controller- Overrides:
initWithNibNameBundlein classUIViewController
-
initWithSearchResultsController
public UISearchController initWithSearchResultsController(@Nullable @Nullable 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
@Nullable public @Nullable UIViewControllerInteractiveTransitioning interactionControllerForDismissal(@NotNull @NotNull UIViewControllerAnimatedTransitioning animator)
- Specified by:
interactionControllerForDismissalin interfaceUIViewControllerTransitioningDelegate
-
interactionControllerForPresentation
@Nullable public @Nullable UIViewControllerInteractiveTransitioning interactionControllerForPresentation(@NotNull @NotNull UIViewControllerAnimatedTransitioning animator)
- Specified by:
interactionControllerForPresentationin interfaceUIViewControllerTransitioningDelegate
-
interruptibleAnimatorForTransition
@NotNull public @NotNull UIViewImplicitlyAnimating interruptibleAnimatorForTransition(@NotNull @NotNull 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. API-Since: 10.0- 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()
On iOS, default is NO for apps linked on iOS 15.0 and later, YES otherwise. On tvOS, default is NO when contained in UISearchContainerViewController, YES otherwise. API-Since: 9.1
-
presentationControllerForPresentedViewControllerPresentingViewControllerSourceViewController
@Nullable public @Nullable UIPresentationController presentationControllerForPresentedViewControllerPresentingViewControllerSourceViewController(@NotNull @NotNull UIViewController presented, @Nullable @Nullable UIViewController presenting, @NotNull @NotNull UIViewController source)
Description copied from interface:UIViewControllerTransitioningDelegateAPI-Since: 8.0
-
searchBar
@NotNull public @NotNull UISearchBar searchBar()
You are free to become the search bar's delegate to monitor for text changes and button presses.
-
searchResultsController
@Nullable public @Nullable UIViewController searchResultsController()
-
searchResultsUpdater
@Nullable public @Nullable UISearchResultsUpdating searchResultsUpdater()
The object responsible for updating the content of the searchResultsController.
-
setDelegate_unsafe
public void setDelegate_unsafe(@Nullable @Nullable UISearchControllerDelegate value)
-
setDelegate
public void setDelegate(@Nullable @Nullable UISearchControllerDelegate value)
-
setDimsBackgroundDuringPresentation
@Deprecated public void setDimsBackgroundDuringPresentation(boolean value)
Deprecated.default is YES, and has the same behavior as obscuresBackgroundDuringPresentation. API-Since: 8.0 Deprecated-Since: 12.0
-
setHidesNavigationBarDuringPresentation
public void setHidesNavigationBarDuringPresentation(boolean value)
default is YES
-
setObscuresBackgroundDuringPresentation
public void setObscuresBackgroundDuringPresentation(boolean value)
On iOS, default is NO for apps linked on iOS 15.0 and later, YES otherwise. On tvOS, default is NO when contained in UISearchContainerViewController, YES otherwise. API-Since: 9.1
-
setSearchResultsUpdater_unsafe
public void setSearchResultsUpdater_unsafe(@Nullable @Nullable UISearchResultsUpdating value)The object responsible for updating the content of the searchResultsController.
-
setSearchResultsUpdater
public void setSearchResultsUpdater(@Nullable @Nullable UISearchResultsUpdating value)The object responsible for updating the content of the searchResultsController.
-
transitionDuration
public double transitionDuration(@Nullable @Nullable 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 API-Since: 13.0
-
automaticallyShowsScopeBar
@Deprecated public boolean automaticallyShowsScopeBar()
Deprecated.By default, UISearchController will show the search bar's scope bar (when there are at least two scope button titles for the search bar) when search becomes active and hide it when search is dismissed. Clients can take over showing and hiding the scope bar by setting automaticallyShowsScopeBar to NO and using UISearchBar's showsScopeBar property to manage scope bar visibility. Additionally, setting the showsScopeBar property on the searchController's searchBar will change the UISearchController's automaticallyShowsScopeBar property to NO. On iOS, this will be fully deprecated in a future release in favor of `scopeBarActivation` API-Since: 13.0 Deprecated-Since: 100000.0 Deprecated-Message: Use scopeBarActivation instead
-
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. API-Since: 13.0
-
setAutomaticallyShowsCancelButton
public void setAutomaticallyShowsCancelButton(boolean value)
Default YES API-Since: 13.0
-
setAutomaticallyShowsScopeBar
@Deprecated public void setAutomaticallyShowsScopeBar(boolean value)
Deprecated.By default, UISearchController will show the search bar's scope bar (when there are at least two scope button titles for the search bar) when search becomes active and hide it when search is dismissed. Clients can take over showing and hiding the scope bar by setting automaticallyShowsScopeBar to NO and using UISearchBar's showsScopeBar property to manage scope bar visibility. Additionally, setting the showsScopeBar property on the searchController's searchBar will change the UISearchController's automaticallyShowsScopeBar property to NO. On iOS, this will be fully deprecated in a future release in favor of `scopeBarActivation` API-Since: 13.0 Deprecated-Since: 100000.0 Deprecated-Message: Use scopeBarActivation instead
-
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. API-Since: 13.0
-
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. API-Since: 13.0
-
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. API-Since: 13.0
-
ignoresSearchSuggestionsForSearchBarPlacementStacked
public boolean ignoresSearchSuggestionsForSearchBarPlacementStacked()
Default NO. When YES, the UISearchController will not create its internal child view controller for presenting the list of search suggestions when the searchBarPlacement is stacked. This property is intended to be set at the time that the search controller is initialized. If set after that point, the internal view controller will not be destroyed, but its view will be hidden and remain so. API-Since: 16.0
-
scopeBarActivation
public long scopeBarActivation()
Controls if and when the UISearchController shows and hides the scope bar However, UISearchBar will not show the scope bar if `scopeButtonTitles` contains fewer than two titles Defaults to `UISearchControllerScopeBarActivationAutomatic` `UISearchControllerScopeBarActivationAutomatic` is equivalent to earlier `automaticallyShowsScopeBar == YES` `UISearchControllerScopeBarActivationManual` is equivalent to earlier `automaticallyShowsScopeBar == NO` Similar to the behavior of `automaticallyShowsScopeBar`, setting the `showsScopeBar` property on the `searchController`'s `searchBar` will change `scopeBarActivation` to `UISearchControllerScopeBarActivationManual` API-Since: 16.0
-
searchBarPlacement
public long searchBarPlacement()
For inspecting the current placement of the search bar when the search controller has been assigned to a UINavigationItem API-Since: 16.0
-
searchSuggestions
@Nullable public @Nullable NSArray<?> searchSuggestions()
List of search hint objects to be displayed under keyboard on tvOS, as a menu under the search field when the search bar is placed inline on iOS 16, or as a list in front of the searchResultsController when the search bar is stacked. Assigning with new array immediately updates the list on screen. searchSuggestions is set to nil when user interaction selects a suggestion, or when the user otherwise interacts with search (e.g., typing in the search field, choosing a different search scope, canceling search) after dismissing the menu by tapping outside API-Since: 16.0
-
setIgnoresSearchSuggestionsForSearchBarPlacementStacked
public void setIgnoresSearchSuggestionsForSearchBarPlacementStacked(boolean value)
Default NO. When YES, the UISearchController will not create its internal child view controller for presenting the list of search suggestions when the searchBarPlacement is stacked. This property is intended to be set at the time that the search controller is initialized. If set after that point, the internal view controller will not be destroyed, but its view will be hidden and remain so. API-Since: 16.0
-
setScopeBarActivation
public void setScopeBarActivation(long value)
Controls if and when the UISearchController shows and hides the scope bar However, UISearchBar will not show the scope bar if `scopeButtonTitles` contains fewer than two titles Defaults to `UISearchControllerScopeBarActivationAutomatic` `UISearchControllerScopeBarActivationAutomatic` is equivalent to earlier `automaticallyShowsScopeBar == YES` `UISearchControllerScopeBarActivationManual` is equivalent to earlier `automaticallyShowsScopeBar == NO` Similar to the behavior of `automaticallyShowsScopeBar`, setting the `showsScopeBar` property on the `searchController`'s `searchBar` will change `scopeBarActivation` to `UISearchControllerScopeBarActivationManual` API-Since: 16.0
-
setSearchSuggestions
public void setSearchSuggestions(@Nullable @Nullable NSArray<?> value)List of search hint objects to be displayed under keyboard on tvOS, as a menu under the search field when the search bar is placed inline on iOS 16, or as a list in front of the searchResultsController when the search bar is stacked. Assigning with new array immediately updates the list on screen. searchSuggestions is set to nil when user interaction selects a suggestion, or when the user otherwise interacts with search (e.g., typing in the search field, choosing a different search scope, canceling search) after dismissing the menu by tapping outside API-Since: 16.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-