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
,UIAccessibility
,UIAccessibilityIdentification
,UIAppearanceContainer
,UIBarPositioning
,UICoordinateSpace
,UIDynamicItem
,UIFocusEnvironment
,UIFocusItem
,UIFocusItemContainer
,UITextInputTraits
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
public class UISearchBar extends UIView implements UIBarPositioning, UITextInputTraits
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UISearchBar.UISearchBarPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIView
UIView.UIViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
Nested classes/interfaces inherited from class org.robovm.objc.ObjCObject
org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super
-
Nested classes/interfaces inherited from interface org.robovm.apple.uikit.UIAccessibility
UIAccessibility.Notifications
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UISearchBar()
UISearchBar(CGRect frame)
UISearchBar(NSCoder decoder)
protected
UISearchBar(NSObject.Handle h, long handle)
protected
UISearchBar(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, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getLastBaselineAnchor, getLayer, getLayerClass, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMotionEffects, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getUserInterfaceLayoutDirection, getUserInterfaceLayoutDirection, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, isUserInteractionEnabled, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, 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, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLayoutMargins, setMaskView, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setSemanticContentAttribute, setTag, setTintAdjustmentMode, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocus, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubview
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryViewController, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods 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, willChangeValues
-
-
-
-
Constructor Detail
-
UISearchBar
public UISearchBar()
-
UISearchBar
protected UISearchBar(NSObject.Handle h, long handle)
-
UISearchBar
protected UISearchBar(NSObject.SkipInit skipInit)
-
UISearchBar
public UISearchBar(CGRect frame)
-
UISearchBar
public UISearchBar(NSCoder decoder)
-
-
Method Detail
-
getBarStyle
public UIBarStyle getBarStyle()
-
setBarStyle
public void setBarStyle(UIBarStyle v)
-
getDelegate
public UISearchBarDelegate getDelegate()
-
setDelegate
public void setDelegate(UISearchBarDelegate v)
-
getText
public java.lang.String getText()
-
setText
public void setText(java.lang.String v)
-
getPrompt
public java.lang.String getPrompt()
-
setPrompt
public void setPrompt(java.lang.String v)
-
getPlaceholder
public java.lang.String getPlaceholder()
-
setPlaceholder
public void setPlaceholder(java.lang.String v)
-
showsBookmarkButton
public boolean showsBookmarkButton()
-
setShowsBookmarkButton
public void setShowsBookmarkButton(boolean v)
-
showsCancelButton
public boolean showsCancelButton()
-
setShowsCancelButton
public void setShowsCancelButton(boolean v)
-
showsSearchResultsButton
public boolean showsSearchResultsButton()
- Since:
- Available in iOS 3.2 and later.
-
setShowsSearchResultsButton
public void setShowsSearchResultsButton(boolean v)
- Since:
- Available in iOS 3.2 and later.
-
isSearchResultsButtonSelected
public boolean isSearchResultsButtonSelected()
- Since:
- Available in iOS 3.2 and later.
-
setSearchResultsButtonSelected
public void setSearchResultsButtonSelected(boolean v)
- Since:
- Available in iOS 3.2 and later.
-
getInputAssistantItem
public UITextInputAssistantItem getInputAssistantItem()
- Overrides:
getInputAssistantItem
in classUIResponder
- Since:
- Available in iOS 9.0 and later.
-
getTintColor
public UIColor getTintColor()
- Overrides:
getTintColor
in classUIView
-
setTintColor
public void setTintColor(UIColor v)
- Overrides:
setTintColor
in classUIView
-
getBarTintColor
public UIColor getBarTintColor()
- Since:
- Available in iOS 7.0 and later.
-
setBarTintColor
public void setBarTintColor(UIColor v)
- Since:
- Available in iOS 7.0 and later.
-
getSearchBarStyle
public UISearchBarStyle getSearchBarStyle()
- Since:
- Available in iOS 7.0 and later.
-
setSearchBarStyle
public void setSearchBarStyle(UISearchBarStyle v)
- Since:
- Available in iOS 7.0 and later.
-
isTranslucent
public boolean isTranslucent()
- Since:
- Available in iOS 3.0 and later.
-
setTranslucent
public void setTranslucent(boolean v)
- Since:
- Available in iOS 3.0 and later.
-
getScopeButtonTitles
public java.util.List<java.lang.String> getScopeButtonTitles()
- Since:
- Available in iOS 3.0 and later.
-
setScopeButtonTitles
public void setScopeButtonTitles(java.util.List<java.lang.String> v)
- Since:
- Available in iOS 3.0 and later.
-
getSelectedScopeButtonIndex
public long getSelectedScopeButtonIndex()
- Since:
- Available in iOS 3.0 and later.
-
setSelectedScopeButtonIndex
public void setSelectedScopeButtonIndex(long v)
- Since:
- Available in iOS 3.0 and later.
-
showsScopeBar
public boolean showsScopeBar()
- Since:
- Available in iOS 3.0 and later.
-
setShowsScopeBar
public void setShowsScopeBar(boolean v)
- Since:
- Available in iOS 3.0 and later.
-
getInputAccessoryView
public UIView getInputAccessoryView()
- Overrides:
getInputAccessoryView
in classUIResponder
-
setInputAccessoryView
public void setInputAccessoryView(UIView v)
-
getBackgroundImage
public UIImage getBackgroundImage()
- Since:
- Available in iOS 5.0 and later.
-
setBackgroundImage
public void setBackgroundImage(UIImage v)
- Since:
- Available in iOS 5.0 and later.
-
getScopeBarBackgroundImage
public UIImage getScopeBarBackgroundImage()
- Since:
- Available in iOS 5.0 and later.
-
setScopeBarBackgroundImage
public void setScopeBarBackgroundImage(UIImage v)
- Since:
- Available in iOS 5.0 and later.
-
getSearchFieldBackgroundPositionAdjustment
public UIOffset getSearchFieldBackgroundPositionAdjustment()
- Since:
- Available in iOS 5.0 and later.
-
setSearchFieldBackgroundPositionAdjustment
public void setSearchFieldBackgroundPositionAdjustment(UIOffset v)
- Since:
- Available in iOS 5.0 and later.
-
getSearchTextPositionAdjustment
public UIOffset getSearchTextPositionAdjustment()
- Since:
- Available in iOS 5.0 and later.
-
setSearchTextPositionAdjustment
public void setSearchTextPositionAdjustment(UIOffset v)
- Since:
- Available in iOS 5.0 and later.
-
getBarPosition
public UIBarPosition getBarPosition()
- Specified by:
getBarPosition
in interfaceUIBarPositioning
-
getAutocapitalizationType
public UITextAutocapitalizationType getAutocapitalizationType()
- Specified by:
getAutocapitalizationType
in interfaceUITextInputTraits
-
setAutocapitalizationType
public void setAutocapitalizationType(UITextAutocapitalizationType v)
- Specified by:
setAutocapitalizationType
in interfaceUITextInputTraits
-
getAutocorrectionType
public UITextAutocorrectionType getAutocorrectionType()
- Specified by:
getAutocorrectionType
in interfaceUITextInputTraits
-
setAutocorrectionType
public void setAutocorrectionType(UITextAutocorrectionType v)
- Specified by:
setAutocorrectionType
in interfaceUITextInputTraits
-
getSpellCheckingType
public UITextSpellCheckingType getSpellCheckingType()
- Specified by:
getSpellCheckingType
in interfaceUITextInputTraits
- Since:
- Available in iOS 5.0 and later.
-
setSpellCheckingType
public void setSpellCheckingType(UITextSpellCheckingType v)
- Specified by:
setSpellCheckingType
in interfaceUITextInputTraits
- Since:
- Available in iOS 5.0 and later.
-
getSmartQuotesType
public UITextSmartQuotesType getSmartQuotesType()
- Specified by:
getSmartQuotesType
in interfaceUITextInputTraits
- Since:
- Available in iOS 11.0 and later.
-
setSmartQuotesType
public void setSmartQuotesType(UITextSmartQuotesType v)
- Specified by:
setSmartQuotesType
in interfaceUITextInputTraits
- Since:
- Available in iOS 11.0 and later.
-
getSmartDashesType
public UITextSmartDashesType getSmartDashesType()
- Specified by:
getSmartDashesType
in interfaceUITextInputTraits
- Since:
- Available in iOS 11.0 and later.
-
setSmartDashesType
public void setSmartDashesType(UITextSmartDashesType v)
- Specified by:
setSmartDashesType
in interfaceUITextInputTraits
- Since:
- Available in iOS 11.0 and later.
-
getSmartInsertDeleteType
public UITextSmartInsertDeleteType getSmartInsertDeleteType()
- Specified by:
getSmartInsertDeleteType
in interfaceUITextInputTraits
- Since:
- Available in iOS 11.0 and later.
-
setSmartInsertDeleteType
public void setSmartInsertDeleteType(UITextSmartInsertDeleteType v)
- Specified by:
setSmartInsertDeleteType
in interfaceUITextInputTraits
- Since:
- Available in iOS 11.0 and later.
-
getKeyboardType
public UIKeyboardType getKeyboardType()
- Specified by:
getKeyboardType
in interfaceUITextInputTraits
-
setKeyboardType
public void setKeyboardType(UIKeyboardType v)
- Specified by:
setKeyboardType
in interfaceUITextInputTraits
-
getKeyboardAppearance
public UIKeyboardAppearance getKeyboardAppearance()
- Specified by:
getKeyboardAppearance
in interfaceUITextInputTraits
-
setKeyboardAppearance
public void setKeyboardAppearance(UIKeyboardAppearance v)
- Specified by:
setKeyboardAppearance
in interfaceUITextInputTraits
-
getReturnKeyType
public UIReturnKeyType getReturnKeyType()
- Specified by:
getReturnKeyType
in interfaceUITextInputTraits
-
setReturnKeyType
public void setReturnKeyType(UIReturnKeyType v)
- Specified by:
setReturnKeyType
in interfaceUITextInputTraits
-
enablesReturnKeyAutomatically
public boolean enablesReturnKeyAutomatically()
- Specified by:
enablesReturnKeyAutomatically
in interfaceUITextInputTraits
-
setEnablesReturnKeyAutomatically
public void setEnablesReturnKeyAutomatically(boolean v)
- Specified by:
setEnablesReturnKeyAutomatically
in interfaceUITextInputTraits
-
isSecureTextEntry
public boolean isSecureTextEntry()
- Specified by:
isSecureTextEntry
in interfaceUITextInputTraits
-
setSecureTextEntry
public void setSecureTextEntry(boolean v)
- Specified by:
setSecureTextEntry
in interfaceUITextInputTraits
-
getTextContentType
public UITextContentType getTextContentType()
- Specified by:
getTextContentType
in interfaceUITextInputTraits
- Since:
- Available in iOS 10.0 and later.
-
setTextContentType
public void setTextContentType(UITextContentType v)
- Specified by:
setTextContentType
in interfaceUITextInputTraits
- Since:
- Available in iOS 10.0 and later.
-
getPasswordRules
public UITextInputPasswordRules getPasswordRules()
- Specified by:
getPasswordRules
in interfaceUITextInputTraits
- Since:
- Available in iOS 12.0 and later.
-
setPasswordRules
public void setPasswordRules(UITextInputPasswordRules v)
- Specified by:
setPasswordRules
in 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
public NSAttributedStringAttributes getScopeBarButtonTitleTextAttributes(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getScopeBarButtonTitleTextMarkupAttributes
public CMTextMarkupAttributes getScopeBarButtonTitleTextMarkupAttributes(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getScopeBarButtonTitleCoreTextAttributes
public CTAttributedStringAttributes getScopeBarButtonTitleCoreTextAttributes(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
setShowsCancelButton
public void setShowsCancelButton(boolean showsCancelButton, boolean animated)
- Since:
- Available in iOS 3.0 and later.
-
setBackgroundImage
public void setBackgroundImage(UIImage backgroundImage, UIBarPosition barPosition, UIBarMetrics barMetrics)
- Since:
- Available in iOS 7.0 and later.
-
getBackgroundImage
public UIImage getBackgroundImage(UIBarPosition barPosition, UIBarMetrics barMetrics)
- Since:
- Available in iOS 7.0 and later.
-
setSearchFieldBackgroundImage
public void setSearchFieldBackgroundImage(UIImage backgroundImage, UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getSearchFieldBackgroundImage
public UIImage getSearchFieldBackgroundImage(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
setImageForSearchBarIcon
public void setImageForSearchBarIcon(UIImage iconImage, UISearchBarIcon icon, UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getImageForSearchBarIcon
public UIImage getImageForSearchBarIcon(UISearchBarIcon icon, UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
setScopeBarButtonBackgroundImage
public void setScopeBarButtonBackgroundImage(UIImage backgroundImage, UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getScopeBarButtonBackgroundImage
public UIImage getScopeBarButtonBackgroundImage(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
setScopeBarButtonDividerImage
public void setScopeBarButtonDividerImage(UIImage dividerImage, UIControlState leftState, UIControlState rightState)
- Since:
- Available in iOS 5.0 and later.
-
getScopeBarButtonDividerImage
public UIImage getScopeBarButtonDividerImage(UIControlState leftState, UIControlState rightState)
- Since:
- Available in iOS 5.0 and later.
-
setScopeBarButtonTitleTextAttributesDictionary
public void setScopeBarButtonTitleTextAttributesDictionary(NSDictionary<NSString,?> attributes, UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
getScopeBarButtonTitleTextAttributesDictionary
public NSDictionary<NSString,?> getScopeBarButtonTitleTextAttributesDictionary(UIControlState state)
- Since:
- Available in iOS 5.0 and later.
-
setPositionAdjustmentForSearchBarIcon
public void setPositionAdjustmentForSearchBarIcon(UIOffset adjustment, UISearchBarIcon icon)
- Since:
- Available in iOS 5.0 and later.
-
getPositionAdjustmentForSearchBarIcon
public UIOffset getPositionAdjustmentForSearchBarIcon(UISearchBarIcon icon)
- Since:
- Available in iOS 5.0 and later.
-
-