Package org.robovm.apple.uikit
Class UISearchBar
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UIResponder
org.robovm.apple.uikit.UIView
org.robovm.apple.uikit.UISearchBar
- All Implemented Interfaces:
CALayerDelegate,NSCoding,NSObjectProtocol,UIAccessibilityIdentification,UIActivityItemsConfigurationProviding,UIAppearanceContainer,UIBarPositioning,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UITextInputTraits,UITraitEnvironment,UIUserActivityRestoring,ObjCProtocol
public class UISearchBar extends UIView implements UIBarPositioning, UITextInputTraits
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUISearchBar.UISearchBarPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIView
UIView.UIViewPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description UISearchBar()UISearchBar(CGRect frame)UISearchBar(NSCoder coder)protectedUISearchBar(NSObject.Handle h, long handle)protectedUISearchBar(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.uikit.UIView
addConstraint, addConstraints, addGestureRecognizer, addInteraction, addKeyframe, addLayoutGuide, addMotionEffect, addSubview, animate, animate, animate, animate, animateKeyframes, areAnimationsEnabled, autoresizesSubviews, beginAnimations, bringSubviewToFront, canBecomeFocused, clearsContextBeforeDrawing, clipsToBounds, commitAnimations, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, decodeRestorableState, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocus, displayLayer, draw, draw, drawLayer, drawViewHierarchy, encode, encodeRestorableState, endEditing, exchangeSubview, exerciseAmbiguityInLayout, focusItemsInRect, gestureRecognizerShouldBegin, getAccessibilityIdentifier, getAction, getAlignmentRectForFrame, getAlignmentRectInsets, getAlpha, getAppliedContentSizeCategoryLimitsDescription, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusEffect, getFocusGroupIdentifier, getFocusGroupPriority, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getKeyboardLayoutGuide, getLargeContentImage, getLargeContentImageInsets, getLargeContentTitle, getLastBaselineAnchor, getLayer, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMaximumContentSizeCategory, getMinimumContentSizeCategory, getMotionEffects, getOverrideUserInterfaceStyle, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getTransform3D, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, isScalesLargeContentImage, isTransparentFocusItem, isUserInteractionEnabled, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, modifyAnimations, needsUpdateConstraints, NoIntrinsicMetric, performSystemAnimation, performWithoutAnimation, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, requiresConstraintBasedLayout, safeAreaInsetsDidChange, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDelegate, setAnimationDidStopSelector, setAnimationDurationInSeconds, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAnimationTransition, setAnimationWillStartSelector, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setContentScaleFactor, setDirectionalLayoutMargins, setExclusiveTouch, setFocusEffect, setFocusGroupIdentifier, setFocusGroupPriority, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLargeContentImage, setLargeContentImageInsets, setLargeContentTitle, setLayoutMargins, setMaskView, setMaximumContentSizeCategory, setMinimumContentSizeCategory, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setScalesLargeContentImage, setSemanticContentAttribute, setShowsLargeContentViewer, setTag, setTintAdjustmentMode, setTransform, setTransform3D, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocus, showsLargeContentViewer, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubviewMethods inherited from class org.robovm.apple.uikit.UIResponder
becomeFirstResponder, buildMenu, canBecomeFirstResponder, canPasteItemProviders, canPerformAction, canResignFirstResponder, captureTextFromCamera, clearTextInputContextIdentifier, copy, cut, decreaseSize, delete, getActionTarget, getActivityItemsConfiguration, getEditingInteractionConfiguration, getInputAccessoryViewController, getInputView, getInputViewController, getKeyCommands, getNextResponder, getPasteConfiguration, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, increaseSize, isFirstResponder, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBegan, motionCancelled, motionEnded, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteItemProviders, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, print, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, toggleBoldface, toggleItalics, toggleUnderline, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateTextAttributes, updateUserActivityState, validateCommandMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
UISearchBar
public UISearchBar() -
UISearchBar
-
UISearchBar
-
UISearchBar
-
UISearchBar
-
-
Method Details
-
getBarStyle
-
setBarStyle
-
getDelegate
-
setDelegate
-
getText
-
setText
-
getPrompt
-
setPrompt
-
getPlaceholder
-
setPlaceholder
-
showsBookmarkButton
public boolean showsBookmarkButton() -
setShowsBookmarkButton
public void setShowsBookmarkButton(boolean v) -
getSearchTextField
- Since:
- Available in iOS 13.0 and later.
-
showsCancelButton
public boolean showsCancelButton() -
setShowsCancelButton
public void setShowsCancelButton(boolean v) -
showsSearchResultsButton
public boolean showsSearchResultsButton() -
setShowsSearchResultsButton
public void setShowsSearchResultsButton(boolean v) -
isSearchResultsButtonSelected
public boolean isSearchResultsButtonSelected() -
setSearchResultsButtonSelected
public void setSearchResultsButtonSelected(boolean v) -
getInputAssistantItem
- Overrides:
getInputAssistantItemin classUIResponder- Since:
- Available in iOS 9.0 and later.
-
getTintColor
- Overrides:
getTintColorin classUIView
-
setTintColor
- Overrides:
setTintColorin classUIView
-
getBarTintColor
-
setBarTintColor
-
getSearchBarStyle
-
setSearchBarStyle
-
isTranslucent
public boolean isTranslucent() -
setTranslucent
public void setTranslucent(boolean v) -
getScopeButtonTitles
-
setScopeButtonTitles
-
getSelectedScopeButtonIndex
public long getSelectedScopeButtonIndex() -
setSelectedScopeButtonIndex
public void setSelectedScopeButtonIndex(long v) -
showsScopeBar
public boolean showsScopeBar() -
setShowsScopeBar
public void setShowsScopeBar(boolean v) -
getInputAccessoryView
- Overrides:
getInputAccessoryViewin classUIResponder
-
setInputAccessoryView
-
getBackgroundImage
-
setBackgroundImage
-
getScopeBarBackgroundImage
-
setScopeBarBackgroundImage
-
getSearchFieldBackgroundPositionAdjustment
-
setSearchFieldBackgroundPositionAdjustment
-
getSearchTextPositionAdjustment
-
setSearchTextPositionAdjustment
-
getLayerClass
-
getBarPosition
- Specified by:
getBarPositionin interfaceUIBarPositioning
-
getAutocapitalizationType
- Specified by:
getAutocapitalizationTypein interfaceUITextInputTraits
-
setAutocapitalizationType
- Specified by:
setAutocapitalizationTypein interfaceUITextInputTraits
-
getAutocorrectionType
- Specified by:
getAutocorrectionTypein interfaceUITextInputTraits
-
setAutocorrectionType
- Specified by:
setAutocorrectionTypein interfaceUITextInputTraits
-
getSpellCheckingType
- Specified by:
getSpellCheckingTypein interfaceUITextInputTraits
-
setSpellCheckingType
- Specified by:
setSpellCheckingTypein interfaceUITextInputTraits
-
getSmartQuotesType
- Specified by:
getSmartQuotesTypein interfaceUITextInputTraits- Since:
- Available in iOS 11.0 and later.
-
setSmartQuotesType
- Specified by:
setSmartQuotesTypein interfaceUITextInputTraits- Since:
- Available in iOS 11.0 and later.
-
getSmartDashesType
- Specified by:
getSmartDashesTypein interfaceUITextInputTraits- Since:
- Available in iOS 11.0 and later.
-
setSmartDashesType
- Specified by:
setSmartDashesTypein interfaceUITextInputTraits- Since:
- Available in iOS 11.0 and later.
-
getSmartInsertDeleteType
- Specified by:
getSmartInsertDeleteTypein interfaceUITextInputTraits- Since:
- Available in iOS 11.0 and later.
-
setSmartInsertDeleteType
- Specified by:
setSmartInsertDeleteTypein interfaceUITextInputTraits- Since:
- Available in iOS 11.0 and later.
-
getKeyboardType
- Specified by:
getKeyboardTypein interfaceUITextInputTraits
-
setKeyboardType
- Specified by:
setKeyboardTypein interfaceUITextInputTraits
-
getKeyboardAppearance
- Specified by:
getKeyboardAppearancein interfaceUITextInputTraits
-
setKeyboardAppearance
- Specified by:
setKeyboardAppearancein interfaceUITextInputTraits
-
getReturnKeyType
- Specified by:
getReturnKeyTypein interfaceUITextInputTraits
-
setReturnKeyType
- Specified by:
setReturnKeyTypein interfaceUITextInputTraits
-
enablesReturnKeyAutomatically
public boolean enablesReturnKeyAutomatically()- Specified by:
enablesReturnKeyAutomaticallyin interfaceUITextInputTraits
-
setEnablesReturnKeyAutomatically
public void setEnablesReturnKeyAutomatically(boolean v)- Specified by:
setEnablesReturnKeyAutomaticallyin interfaceUITextInputTraits
-
isSecureTextEntry
public boolean isSecureTextEntry()- Specified by:
isSecureTextEntryin interfaceUITextInputTraits
-
setSecureTextEntry
public void setSecureTextEntry(boolean v)- Specified by:
setSecureTextEntryin interfaceUITextInputTraits
-
getTextContentType
- Specified by:
getTextContentTypein interfaceUITextInputTraits- Since:
- Available in iOS 10.0 and later.
-
setTextContentType
- Specified by:
setTextContentTypein interfaceUITextInputTraits- Since:
- Available in iOS 10.0 and later.
-
getPasswordRules
- Specified by:
getPasswordRulesin interfaceUITextInputTraits- Since:
- Available in iOS 12.0 and later.
-
setPasswordRules
- Specified by:
setPasswordRulesin interfaceUITextInputTraits- Since:
- Available in iOS 12.0 and later.
-
setScopeBarButtonTitleTextAttributes
public void setScopeBarButtonTitleTextAttributes(NSAttributedStringAttributes attributes, UIControlState state)- Since:
- Available in iOS 5.0 and later.
-
setScopeBarButtonTitleTextMarkupAttributes
public void setScopeBarButtonTitleTextMarkupAttributes(CMTextMarkupAttributes attributes, UIControlState state)- Since:
- Available in iOS 5.0 and later.
-
setScopeBarButtonTitleCoreTextAttributes
public void setScopeBarButtonTitleCoreTextAttributes(CTAttributedStringAttributes attributes, UIControlState state)- Since:
- Available in iOS 5.0 and later.
-
getScopeBarButtonTitleTextAttributes
- Since:
- Available in iOS 5.0 and later.
-
getScopeBarButtonTitleTextMarkupAttributes
- Since:
- Available in iOS 5.0 and later.
-
getScopeBarButtonTitleCoreTextAttributes
- Since:
- Available in iOS 5.0 and later.
-
init
-
init
-
setShowsCancelButton
public void setShowsCancelButton(boolean showsCancelButton, boolean animated) -
setShowsScopeBar
public void setShowsScopeBar(boolean show, boolean animate)- Since:
- Available in iOS 13.0 and later.
-
setBackgroundImage
public void setBackgroundImage(UIImage backgroundImage, UIBarPosition barPosition, UIBarMetrics barMetrics) -
getBackgroundImage
-
setSearchFieldBackgroundImage
-
getSearchFieldBackgroundImage
-
setImageForSearchBarIcon
public void setImageForSearchBarIcon(UIImage iconImage, UISearchBarIcon icon, UIControlState state) -
getImageForSearchBarIcon
-
setScopeBarButtonBackgroundImage
-
getScopeBarButtonBackgroundImage
-
setScopeBarButtonDividerImage
public void setScopeBarButtonDividerImage(UIImage dividerImage, UIControlState leftState, UIControlState rightState) -
getScopeBarButtonDividerImage
-
setScopeBarButtonTitleTextAttributesDictionary
public void setScopeBarButtonTitleTextAttributesDictionary(NSDictionary<NSString,?> attributes, UIControlState state) -
getScopeBarButtonTitleTextAttributesDictionary
public NSDictionary<NSString,?> getScopeBarButtonTitleTextAttributesDictionary(UIControlState state) -
setPositionAdjustmentForSearchBarIcon
-
getPositionAdjustmentForSearchBarIcon
-
getUserInterfaceLayoutDirection
public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute attribute)- Since:
- Available in iOS 9.0 and later.
-
getUserInterfaceLayoutDirection
public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)- Since:
- Available in iOS 10.0 and later.
-