Share via


UISearchBar Class

Definition

[Foundation.Register("UISearchBar", true)]
public class UISearchBar : UIKit.UIView, IDisposable, UIKit.IUIBarPositioning, UIKit.IUILookToDictateCapable, UIKit.IUITextInputTraits
[<Foundation.Register("UISearchBar", true)>]
type UISearchBar = class
    inherit UIView
    interface INSCoding
    interface INativeObject
    interface IDisposable
    interface IUIBarPositioning
    interface IUILookToDictateCapable
    interface IUITextInputTraits
[<Foundation.Register("UISearchBar", true)>]
type UISearchBar = class
    inherit UIView
    interface IUIBarPositioning
    interface INativeObject
    interface IDisposable
    interface IUILookToDictateCapable
    interface IUITextInputTraits
Inheritance
Attributes
Implements

Constructors

Name Description
UISearchBar()

Creates a new UISearchBar with default values.

UISearchBar(CGRect)
UISearchBar(NativeHandle)

A constructor used when creating managed representations of unmanaged objects. Called by the runtime.

UISearchBar(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

UISearchBar(NSObjectFlag)

Constructor to call on derived classes to skip initialization and merely allocate the object.

Properties

Name Description
AccessibilityActivationPoint (Inherited from UIView)
AccessibilityAssistiveTechnologyFocusedIdentifiers (Inherited from UIResponder)
AccessibilityAttributedHint (Inherited from UIView)
AccessibilityAttributedLabel (Inherited from UIView)
AccessibilityAttributedUserInputLabels (Inherited from UIView)
AccessibilityAttributedValue (Inherited from UIView)
AccessibilityCustomActions (Inherited from UIResponder)
AccessibilityDirectTouchOptions (Inherited from UIView)
AccessibilityDragSourceDescriptors (Inherited from UIResponder)
AccessibilityDropPointDescriptors (Inherited from UIResponder)
AccessibilityElementsHidden (Inherited from UIView)
AccessibilityExpandedStatus (Inherited from UIView)
AccessibilityFrame (Inherited from UIView)
AccessibilityHeaderElements (Inherited from UIView)
AccessibilityHint (Inherited from UIView)
AccessibilityIdentifier

Uniquely identifies this for the purposes of accessibility.

(Inherited from UIView)
AccessibilityIgnoresInvertColors (Inherited from UIView)
AccessibilityLabel (Inherited from UIView)
AccessibilityLanguage (Inherited from UIView)
AccessibilityNavigationStyle (Inherited from UIView)
AccessibilityPath (Inherited from UIView)
AccessibilityRespondsToUserInteraction (Inherited from UIView)
AccessibilityTextualContext (Inherited from UIView)
AccessibilityTraits (Inherited from UIView)
AccessibilityUserInputLabels (Inherited from UIView)
AccessibilityValue (Inherited from UIView)
AccessibilityViewIsModal (Inherited from UIView)
ActivityItemsConfiguration (Inherited from UIResponder)
AlignmentRectInsets (Inherited from UIView)
AllowedWritingToolsResultOptions
AllowsNumberPadPopover
Alpha (Inherited from UIView)
AnchorPoint (Inherited from UIView)
Appearance

Strongly-typed property that returns the UIAppearance class for this class.

AppliedContentSizeCategoryLimitsDescription (Inherited from UIView)
AutocapitalizationType

The UITextAutocapitalizationType used by the IUITextInput.

AutocorrectionType

The UITextAutocorrectionType used by the IUITextInput.

AutoresizingMask (Inherited from UIView)
AutosizesSubviews (Inherited from UIView)
BackgroundColor

The color used for the background.

(Inherited from UIView)
BackgroundImage

The UIImage used for the search bar's background.

BarPosition

Gets the bar position.

BarStyle
BarTintColor

The tint of the search bar background.

BottomAnchor (Inherited from UIView)
Bounds (Inherited from UIView)
CanBecomeFirstResponder (Inherited from UIResponder)
CanBecomeFocused (Inherited from UIView)
CanResignFirstResponder (Inherited from UIResponder)
Center (Inherited from UIView)
CenterXAnchor (Inherited from UIView)
CenterYAnchor (Inherited from UIView)
Class (Inherited from NSObject)
ClassHandle

The Objective-C class handle for this class.

ClearsContextBeforeDrawing (Inherited from UIView)
ClipsToBounds (Inherited from UIView)
CollisionBoundingPath

Returns the closed path that is used for collision detection.

(Inherited from UIView)
CollisionBoundsType

Returns a value that tells how collision bounds are specified.

(Inherited from UIView)
Constraints (Inherited from UIView)
ContentMode (Inherited from UIView)
ContentScaleFactor (Inherited from UIView)
ContentStretch (Inherited from UIView)
ConversationContext
CoordinateSpace

Gets the coordinate space implemenation.

(Inherited from UIView)
CornerConfiguration (Inherited from UIView)
DebugDescription (Inherited from NSObject)
Delegate

An instance of the UIKit.IUISearchBarDelegate model class which acts as the class delegate.

Description (Inherited from NSObject)
DirectionalLayoutMargins (Inherited from UIView)
EditingInteractionConfiguration (Inherited from UIResponder)
EffectiveUserInterfaceLayoutDirection (Inherited from UIView)
Enabled
EnablesReturnKeyAutomatically

Whether the return key is automatically enabled.

ExclusiveTouch

Restricts the event delivery to this view.

(Inherited from UIView)
FirstBaselineAnchor (Inherited from UIView)
Focused

Whether the UIView is the focused view.

(Inherited from UIView)
FocusEffect (Inherited from UIView)
FocusGroupIdentifier (Inherited from UIView)
FocusGroupPriority (Inherited from UIView)
FocusItemContainer

Gets the container that manages focus information for child focus items.

(Inherited from UIView)
FocusItemDeferralMode (Inherited from UIView)
Frame (Inherited from UIView)
GestureRecognizers (Inherited from UIView)
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from NSObject)
HasAmbiguousLayout (Inherited from UIView)
HeightAnchor (Inherited from UIView)
Hidden

Specifies whether the UIView displays or not.

(Inherited from UIView)
HoverStyle (Inherited from UIView)
InlinePredictionType
InputAccessoryView
InputAccessoryViewController (Inherited from UIResponder)
InputAssistantItem
InputView (Inherited from UIResponder)
InputViewController (Inherited from UIResponder)
InsetsLayoutMarginsFromSafeArea (Inherited from UIView)
Interactions (Inherited from UIView)
IntrinsicContentSize (Inherited from UIView)
IsAccessibilityElement (Inherited from UIView)
IsDirectBinding (Inherited from NSObject)
IsFirstResponder (Inherited from UIResponder)
IsProxy (Inherited from NSObject)
IsTransparentFocusItem (Inherited from UIView)
KeyboardAppearance

The UIKeyboardAppearance used by the IUITextInput

KeyboardLayoutGuide (Inherited from UIView)
KeyboardType

The UIKeyboardType used by the IUITextInput.

KeyCommands (Inherited from UIResponder)
LargeContentImage (Inherited from UIView)
LargeContentImageInsets (Inherited from UIView)
LargeContentTitle (Inherited from UIView)
LastBaselineAnchor (Inherited from UIView)
Layer (Inherited from UIView)
LayoutGuides (Inherited from UIView)
LayoutMargins (Inherited from UIView)
LayoutMarginsGuide (Inherited from UIView)
LeadingAnchor (Inherited from UIView)
LeftAnchor (Inherited from UIView)
LookToDictateEnabled
MaskView (Inherited from UIView)
MathExpressionCompletionType
MaximumContentSizeCategory (Inherited from UIView)
MinimumContentSizeCategory (Inherited from UIView)
MotionEffects (Inherited from UIView)
MultipleTouchEnabled

Controls whether the UIView can handle multitouch events.

(Inherited from UIView)
NextResponder (Inherited from UIResponder)
Opaque

Determines whether the view is opaque or not.

(Inherited from UIView)
OverrideUserInterfaceStyle (Inherited from UIView)
ParentFocusEnvironment

Gets the parent focus environment.

(Inherited from UIView)
PasswordRules

The password entry rules.

PasteConfiguration

The UIPasteConfiguration supported by this object.

(Inherited from UIResponder)
Placeholder
PreferredFocusedView

If not null, indicates the child UIView that should receive focus by default.

(Inherited from UIView)
PreferredFocusEnvironments

Gets the list of focus environments, ordered by priority, that the environment prefers when updating the focus.

(Inherited from UIView)
PreservesSuperviewLayoutMargins (Inherited from UIView)
Prompt
ReadableContentGuide (Inherited from UIView)
RestorationIdentifier (Inherited from UIView)
RetainCount (Inherited from NSObject)
ReturnKeyType

The form of the return key for the IUITextInput.

RightAnchor (Inherited from UIView)
SafeAreaInsets (Inherited from UIView)
SafeAreaLayoutGuide (Inherited from UIView)
ScalesLargeContentImage (Inherited from UIView)
ScopeBarBackgroundImage

The image used as the background for the scope bar.

ScopeButtonTitles
SearchBarStyle
SearchFieldBackgroundPositionAdjustment
SearchResultsButtonSelected

Whether the search results button is selected.

SearchTextField
SearchTextPositionAdjustment
SecureTextEntry

Whether the entered text should be hidden.

SelectedScopeButtonIndex
Self (Inherited from NSObject)
SemanticContentAttribute (Inherited from UIView)
ShouldBeginEditing

Delegate invoked by the object to get a value.

ShouldChangeTextInRange

Delegate invoked by the object to get a value.

ShouldEndEditing

Delegate invoked by the object to get a value.

ShouldGroupAccessibilityChildren (Inherited from UIView)
ShowsBookmarkButton
ShowsCancelButton
ShowsLargeContentViewer (Inherited from UIView)
ShowsScopeBar
ShowsSearchResultsButton
SmartDashesType

The smart dashes style.

SmartInsertDeleteType

The smart insert style.

SmartQuotesType

The smart quotes style.

SpellCheckingType

Gets or sets a value that tells whether spell-checking is on, off, or if spell-checking will be enabled only when auto-complete is enabled (default).

Subviews (Inherited from UIView)
Superclass (Inherited from NSObject)
SuperHandle

Handle used to represent the methods in the base class for this NSObject.

(Inherited from NSObject)
Superview (Inherited from UIView)
Tag (Inherited from UIView)
Text
TextContentType

The semantic of the expected input, which allows the system to, for example, provide custom keyboards.

TextInputContextIdentifier (Inherited from UIResponder)
TextInputMode (Inherited from UIResponder)
TintAdjustmentMode (Inherited from UIView)
TintColor

The color used for tinting.

(Inherited from UIView)
TopAnchor (Inherited from UIView)
TouchBar (Inherited from UIResponder)
TrailingAnchor (Inherited from UIView)
TraitCollection

Gets the trait collection that describes the environment.

(Inherited from UIView)
TraitOverrides (Inherited from UIView)
Transform (Inherited from UIView)
Transform3D (Inherited from UIView)
TranslatesAutoresizingMaskIntoConstraints (Inherited from UIView)
Translucent

True if the search bar is translucent.

UndoManager (Inherited from UIResponder)
UserActivity (Inherited from UIResponder)
UserInteractionEnabled

Determines whether input events are processed by this view.

(Inherited from UIView)
ViewForBaselineLayout (Inherited from UIView)
ViewForFirstBaselineLayout (Inherited from UIView)
ViewForLastBaselineLayout (Inherited from UIView)
ViewPrintFormatter (Inherited from UIView)
WeakDelegate
WidthAnchor (Inherited from UIView)
Window (Inherited from UIView)
WritingToolsBehavior
Zone (Inherited from NSObject)

Methods

Name Description
AccessibilityActivate() (Inherited from UIView)
AccessibilityDecrement() (Inherited from UIResponder)
AccessibilityElementDidBecomeFocused() (Inherited from UIResponder)
AccessibilityElementDidLoseFocus() (Inherited from UIResponder)
AccessibilityElementIsFocused() (Inherited from UIResponder)
AccessibilityIncrement() (Inherited from UIResponder)
AccessibilityPerformEscape() (Inherited from UIResponder)
AccessibilityPerformMagicTap() (Inherited from UIResponder)
AccessibilityScroll(UIAccessibilityScrollDirection) (Inherited from UIResponder)
ActionForLayer(CALayer, String) (Inherited from UIView)
Add(UIView)

This is an alias for AddSubview(UIView), but uses the Add pattern as it allows C# 3.0 constructs to add subviews after creating the object.

(Inherited from UIView)
AddConstraint(NSLayoutConstraint) (Inherited from UIView)
AddConstraints(NSLayoutConstraint[]) (Inherited from UIView)
AddGestureRecognizer(UIGestureRecognizer) (Inherited from UIView)
AddInteraction(IUIInteraction) (Inherited from UIView)
AddLayoutGuide(UILayoutGuide) (Inherited from UIView)
AddMotionEffect(UIMotionEffect) (Inherited from UIView)
AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) (Inherited from NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) (Inherited from NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddSubview(UIView) (Inherited from UIView)
AddSubviews(UIView[])

Convenience routine to add various views to a UIView.

(Inherited from UIView)
AlignCenter(NSObject) (Inherited from UIResponder)
AlignJustified(NSObject) (Inherited from UIResponder)
AlignLeft(NSObject) (Inherited from UIResponder)
AlignmentRectForFrame(CGRect) (Inherited from UIView)
AlignRight(NSObject) (Inherited from UIResponder)
AppearanceWhenContainedIn(Type[])

Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.

AwakeFromNib() (Inherited from NSObject)
BackgroundImageForBarPosition(UIBarPosition, UIBarMetrics)

The UIImage used for the search bar's background, given the specified UIBarPosition and UIBarMetrics.

BecomeFirstResponder() (Inherited from UIResponder)
BeginInvokeOnMainThread(Action) (Inherited from NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

Invokes asynchrously the specified code on the main UI thread.

(Inherited from NSObject)
BringSubviewToFront(UIView) (Inherited from UIView)
BuildMenu(IUIMenuBuilder) (Inherited from UIResponder)
CanPaste(NSItemProvider[])

Returns true if the responder can paste from the specified item providers.

(Inherited from UIResponder)
CanPerform(Selector, NSObject) (Inherited from UIResponder)
Capture(Boolean)

Performs a screen-capture of the UIView.

(Inherited from UIView)
CaptureTextFromCamera(NSObject) (Inherited from UIResponder)
ConformsToProtocol(NativeHandle) (Inherited from NSObject)
ContentCompressionResistancePriority(UILayoutConstraintAxis) (Inherited from UIView)
ContentHuggingPriority(UILayoutConstraintAxis) (Inherited from UIView)
ConvertPointFromCoordinateSpace(CGPoint, IUICoordinateSpace) (Inherited from UIView)
ConvertPointFromView(CGPoint, UIView) (Inherited from UIView)
ConvertPointToCoordinateSpace(CGPoint, IUICoordinateSpace) (Inherited from UIView)
ConvertPointToView(CGPoint, UIView) (Inherited from UIView)
ConvertRectFromCoordinateSpace(CGRect, IUICoordinateSpace) (Inherited from UIView)
ConvertRectFromView(CGRect, UIView) (Inherited from UIView)
ConvertRectToCoordinateSpace(CGRect, IUICoordinateSpace) (Inherited from UIView)
ConvertRectToView(CGRect, UIView) (Inherited from UIView)
Copy() (Inherited from NSObject)
Copy(NSObject) (Inherited from UIResponder)
CreateTouchBar() (Inherited from UIResponder)
Cut(NSObject) (Inherited from UIResponder)
DangerousAutorelease()

Calls the 'autorelease' selector on this object.

(Inherited from NSObject)
DangerousRelease()

Calls the 'release' selector on this object.

(Inherited from NSObject)
DangerousRetain()

Calls the 'retain' selector on this object.

(Inherited from NSObject)
DecodeRestorableState(NSCoder) (Inherited from UIView)
DecreaseSize(NSObject) (Inherited from UIResponder)
Delete(NSObject) (Inherited from UIResponder)
DidChange(NSKeyValueChange, NSIndexSet, NSString) (Inherited from NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) (Inherited from NSObject)
DidChangeValue(String) (Inherited from NSObject)
DidHintFocusMovement(UIFocusMovementHint)

Called when a focus change may soon happen.

(Inherited from UIView)
DidUpdateFocus(UIFocusUpdateContext, UIFocusAnimationCoordinator)

Delegate method called shortly after focus has changed to a new UIView.

(Inherited from UIView)
DisplayLayer(CALayer) (Inherited from UIView)
Dispose()

Releases the resources used by the NSObject object.

(Inherited from NSObject)
Dispose(Boolean)
DoesNotRecognizeSelector(Selector) (Inherited from NSObject)
Draw(CGRect) (Inherited from UIView)
DrawLayer(CALayer, CGContext) (Inherited from UIView)
DrawRect(CGRect, UIViewPrintFormatter) (Inherited from UIView)
DrawViewHierarchy(CGRect, Boolean) (Inherited from UIView)
Duplicate(NSObject) (Inherited from UIResponder)
EncodeRestorableState(NSCoder) (Inherited from UIView)
EncodeTo(NSCoder)

Encodes the state of the object using the provided encoder.

EncodeTo(NSCoder)

Encodes the state of the object using the provided encoder.

(Inherited from UIView)
Equals(NSObject) (Inherited from NSObject)
Equals(Object) (Inherited from NSObject)
ExchangeSubview(IntPtr, IntPtr)

This method exchanges the indices of two UIViews within the Subviews array.

(Inherited from UIView)
ExerciseAmbiguityInLayout() (Inherited from UIView)
Export(NSObject) (Inherited from UIResponder)
Find(NSObject) (Inherited from UIResponder)
FindAndReplace(NSObject) (Inherited from UIResponder)
FindNext(NSObject) (Inherited from UIResponder)
FindPrevious(NSObject) (Inherited from UIResponder)
FrameForAlignmentRect(CGRect) (Inherited from UIView)
GestureRecognizerShouldBegin(UIGestureRecognizer) (Inherited from UIView)
GetAppearance(UITraitCollection, Type[])

Obtains the appearance proxy UISearchBar.UISearchBarAppearance for UISearchBar.

GetAppearance(UITraitCollection)

Obtains the appearance proxy UISearchBar.UISearchBarAppearance for UISearchBar.

GetAppearance<T>()

Obtains the appearance proxy UISearchBar.UISearchBarAppearance for the subclass of UISearchBar.

GetAppearance<T>(UITraitCollection, Type[])

Obtains the appearance proxy UISearchBar.UISearchBarAppearance for the subclass of UISearchBar.

GetAppearance<T>(UITraitCollection)

Obtains the appearance proxy UISearchBar.UISearchBarAppearance for the subclass of UISearchBar.

GetConstraintsAffectingLayout(UILayoutConstraintAxis) (Inherited from UIView)
GetDictionaryOfValuesFromKeys(NSString[]) (Inherited from NSObject)
GetDirectionalEdgeInsets(UIViewLayoutRegion) (Inherited from UIView)
GetEdgeInsets(UIViewLayoutRegion) (Inherited from UIView)
GetEnumerator()

Returns an enumerator that lists all of the subviews in this view

(Inherited from UIView)
GetFocusItems(CGRect)

Returns a list of all the child focus items within the specified rectangle.

(Inherited from UIView)
GetFrame(UIView) (Inherited from UIView)
GetHashCode()

Generates a hash code for the current instance.

(Inherited from NSObject)
GetImageForSearchBarIcon(UISearchBarIcon, UIControlState)

The image for the specified search bar icon type and control state.

GetLayoutGuide(UIViewLayoutRegion) (Inherited from UIView)
GetMethodForSelector(Selector) (Inherited from NSObject)
GetNativeHash() (Inherited from NSObject)
GetPositionAdjustmentForSearchBarIcon(UISearchBarIcon)
GetProvider(UIDeferredMenuElement) (Inherited from UIResponder)
GetScopeBarButtonBackgroundImage(UIControlState)

The background image for the scope bar button for the specified state.

GetScopeBarButtonDividerImage(UIControlState, UIControlState)

The divider image used for the specified combination of left and righ t segment states.

GetScopeBarButtonTitleTextAttributes(UIControlState)

The text attributes of the scope bar button's title for the specified UIControlState.

GetSearchFieldBackgroundImage(UIControlState)

The image used as abackground of the search field for the specified state.

GetSoundIdentifier(UIFocusUpdateContext) (Inherited from UIView)
GetTargetForAction(Selector, NSObject) (Inherited from UIResponder)
HitTest(CGPoint, UIEvent) (Inherited from UIView)
IncreaseSize(NSObject) (Inherited from UIResponder)
Init() (Inherited from NSObject)
InitializeHandle(NativeHandle, String) (Inherited from NSObject)
InitializeHandle(NativeHandle) (Inherited from NSObject)
InsertSubview(UIView, IntPtr)

Inserts the specified subview at the specified ___location as a subview of this view.

(Inherited from UIView)
InsertSubviewAbove(UIView, UIView) (Inherited from UIView)
InsertSubviewBelow(UIView, UIView) (Inherited from UIView)
InvalidateIntrinsicContentSize() (Inherited from UIView)
Invoke(Action, Double) (Inherited from NSObject)
Invoke(Action, TimeSpan) (Inherited from NSObject)
InvokeOnMainThread(Action) (Inherited from NSObject)
InvokeOnMainThread(Selector, NSObject)

Invokes synchrously the specified code on the main UI thread.

(Inherited from NSObject)
IsDescendantOfView(UIView) (Inherited from UIView)
IsEqual(NSObject) (Inherited from NSObject)
IsKindOfClass(Class) (Inherited from NSObject)
IsMemberOfClass(Class) (Inherited from NSObject)
LayoutIfNeeded() (Inherited from UIView)
LayoutMarginsDidChange() (Inherited from UIView)
LayoutSublayersOfLayer(CALayer) (Inherited from UIView)
LayoutSubviews() (Inherited from UIView)
MakeTextWritingDirectionLeftToRight(NSObject) (Inherited from UIResponder)
MakeTextWritingDirectionRightToLeft(NSObject) (Inherited from UIResponder)
MarkDirty()

Promotes a regular peer object (IsDirectBinding is true) into a toggleref object.

(Inherited from NSObject)
MotionBegan(UIEventSubtype, UIEvent) (Inherited from UIResponder)
MotionCancelled(UIEventSubtype, UIEvent) (Inherited from UIResponder)
MotionEnded(UIEventSubtype, UIEvent) (Inherited from UIResponder)
Move(NSObject) (Inherited from UIResponder)
MovedToSuperview() (Inherited from UIView)
MovedToWindow() (Inherited from UIView)
MutableCopy() (Inherited from NSObject)
NeedsUpdateConstraints() (Inherited from UIView)
NewFromPasteboard(NSObject) (Inherited from UIResponder)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr) (Inherited from NSObject)
Paste(NSItemProvider[])

Performs the paste.

(Inherited from UIResponder)
Paste(NSObject) (Inherited from UIResponder)
PasteAndGo(NSObject) (Inherited from UIResponder)
PasteAndMatchStyle(NSObject) (Inherited from UIResponder)
PasteAndSearch(NSObject) (Inherited from UIResponder)
PerformClose(NSObject) (Inherited from UIResponder)
PerformSelector(Selector, NSObject, Double, NSString[]) (Inherited from NSObject)
PerformSelector(Selector, NSObject, Double) (Inherited from NSObject)
PerformSelector(Selector, NSObject, NSObject) (Inherited from NSObject)
PerformSelector(Selector, NSObject) (Inherited from NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) (Inherited from NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean) (Inherited from NSObject)
PerformSelector(Selector) (Inherited from NSObject)
PointInside(CGPoint, UIEvent) (Inherited from UIView)
PrepareForInterfaceBuilder() (Inherited from NSObject)
PressesBegan(NSSet<UIPress>, UIPressesEvent) (Inherited from UIResponder)
PressesCancelled(NSSet<UIPress>, UIPressesEvent) (Inherited from UIResponder)
PressesChanged(NSSet<UIPress>, UIPressesEvent) (Inherited from UIResponder)
PressesEnded(NSSet<UIPress>, UIPressesEvent) (Inherited from UIResponder)
Print(NSObject) (Inherited from UIResponder)
RegisterForTraitChanges(Action<IUITraitEnvironment,UITraitCollection>, Type[])

Registers a callback handler that will be executed when one of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges(Class[], Action<IUITraitEnvironment,UITraitCollection>) (Inherited from UIView)
RegisterForTraitChanges(Class[], NSObject, Selector) (Inherited from UIView)
RegisterForTraitChanges(Class[], Selector) (Inherited from UIView)
RegisterForTraitChanges(IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)
Obsolete.
(Inherited from UIView)
RegisterForTraitChanges(IUITraitDefinition[], NSObject, Selector)
Obsolete.
(Inherited from UIView)
RegisterForTraitChanges(IUITraitDefinition[], Selector)
Obsolete.
(Inherited from UIView)
RegisterForTraitChanges(Type[], Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when one of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges(Type[], NSObject, Selector)

Registers a selector that will be called on the specified object when any of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges(Type[], Selector)

Registers a selector that will be called on the current object when any of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges<T>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when the specified trait changes.

(Inherited from UIView)
RegisterForTraitChanges<T1,T2,T3,T4>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges<T1,T2,T3>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

(Inherited from UIView)
RegisterForTraitChanges<T1,T2>(Action<IUITraitEnvironment,UITraitCollection>)

Registers a callback handler that will be executed when any of the specified traits changes.

(Inherited from UIView)
ReloadInputViews() (Inherited from UIResponder)
RemoteControlReceived(UIEvent) (Inherited from UIResponder)
RemoveConstraint(NSLayoutConstraint) (Inherited from UIView)
RemoveConstraints(NSLayoutConstraint[]) (Inherited from UIView)
RemoveFromSuperview() (Inherited from UIView)
RemoveGestureRecognizer(UIGestureRecognizer) (Inherited from UIView)
RemoveInteraction(IUIInteraction) (Inherited from UIView)
RemoveLayoutGuide(UILayoutGuide) (Inherited from UIView)
RemoveMotionEffect(UIMotionEffect) (Inherited from UIView)
RemoveObserver(NSObject, NSString, IntPtr) (Inherited from NSObject)
RemoveObserver(NSObject, NSString) (Inherited from NSObject)
RemoveObserver(NSObject, String, IntPtr) (Inherited from NSObject)
RemoveObserver(NSObject, String) (Inherited from NSObject)
Rename(NSObject) (Inherited from UIResponder)
ResignFirstResponder() (Inherited from UIResponder)
ResizableSnapshotView(CGRect, Boolean, UIEdgeInsets) (Inherited from UIView)
RespondsToSelector(Selector) (Inherited from NSObject)
RestoreUserActivityState(NSUserActivity) (Inherited from UIResponder)
SafeAreaInsetsDidChange() (Inherited from UIView)
Select(NSObject) (Inherited from UIResponder)
SelectAll(NSObject) (Inherited from UIResponder)
SendSubviewToBack(UIView) (Inherited from UIView)
SetBackgroundImage(UIImage, UIBarPosition, UIBarMetrics)

Sets the background image for the specified UIBarPosition and UIBarMetrics.

SetContentCompressionResistancePriority(Single, UILayoutConstraintAxis) (Inherited from UIView)
SetContentHuggingPriority(Single, UILayoutConstraintAxis) (Inherited from UIView)
SetEffectiveRadius(UIRectCorner) (Inherited from UIView)
SetImageforSearchBarIcon(UIImage, UISearchBarIcon, UIControlState)

Sets the image to be used for the specified UISearchBarIcon type and UIControlState.

SetNeedsDisplay() (Inherited from UIView)
SetNeedsDisplayInRect(CGRect) (Inherited from UIView)
SetNeedsFocusUpdate()

When this is the active focus environment, requests a focus update, which can potentially change the PreferredFocusedView. (See also UpdateFocusIfNeeded().)

(Inherited from UIView)
SetNeedsLayout() (Inherited from UIView)
SetNeedsUpdateConstraints() (Inherited from UIView)
SetNeedsUpdateProperties() (Inherited from UIView)
SetNilValueForKey(NSString) (Inherited from NSObject)
SetPositionAdjustmentforSearchBarIcon(UIOffset, UISearchBarIcon)
SetScopeBarButtonBackgroundImage(UIImage, UIControlState)

Sets the image to be used as the scope bar's background for the specified UIControlState.

SetScopeBarButtonDividerImage(UIImage, UIControlState, UIControlState)

Sets the image to be used as a divider for the specified combination of left and right states.

SetScopeBarButtonTitle(UIStringAttributes, UIControlState)

The title and attributes of the scope bar button for the specified UIControlState.

SetSearchFieldBackgroundImage(UIImage, UIControlState)

Sets the background image of the search field for the specified UIControlState.

SetShowsCancelButton(Boolean, Boolean)
SetShowsScopeBar(Boolean, Boolean)
SetValueForKey(NSObject, NSString) (Inherited from NSObject)
SetValueForKeyPath(NativeHandle, NSString) (Inherited from NSObject)
SetValueForKeyPath(NSObject, NSString) (Inherited from NSObject)
SetValueForUndefinedKey(NSObject, NSString) (Inherited from NSObject)
SetValuesForKeysWithDictionary(NSDictionary) (Inherited from NSObject)
ShouldUpdateFocus(UIFocusUpdateContext)

Called prior to the current object either losing or receiving focus. If either focus environment returns false, the focus update is canceled.

(Inherited from UIView)
ShowWritingTools(NSObject) (Inherited from UIResponder)
SizeThatFits(CGSize) (Inherited from UIView)
SizeToFit() (Inherited from UIView)
SnapshotView(Boolean) (Inherited from UIView)
SubviewAdded(UIView) (Inherited from UIView)
SystemLayoutSizeFittingSize(CGSize, Single, Single) (Inherited from UIView)
SystemLayoutSizeFittingSize(CGSize) (Inherited from UIView)
TintColorDidChange() (Inherited from UIView)
ToggleBoldface(NSObject) (Inherited from UIResponder)
ToggleInspector(NSObject) (Inherited from UIResponder)
ToggleItalics(NSObject) (Inherited from UIResponder)
ToggleSidebar(NSObject) (Inherited from UIResponder)
ToggleUnderline(NSObject) (Inherited from UIResponder)
ToString()

Returns a string representation of the value of the current instance.

(Inherited from NSObject)
TouchesBegan(NSSet, UIEvent) (Inherited from UIResponder)
TouchesCancelled(NSSet, UIEvent) (Inherited from UIResponder)
TouchesEnded(NSSet, UIEvent) (Inherited from UIResponder)
TouchesEstimatedPropertiesUpdated(NSSet) (Inherited from UIResponder)
TouchesMoved(NSSet, UIEvent) (Inherited from UIResponder)
TraitCollectionDidChange(UITraitCollection)

The trait collection that describes the environmnent changed.

(Inherited from UIView)
UnregisterForTraitChanges(IUITraitChangeRegistration) (Inherited from UIView)
UpdateConstraints() (Inherited from UIView)
UpdateConstraintsIfNeeded() (Inherited from UIView)
UpdateFocusIfNeeded()

If any focus environment has a pending update, this method forces an immediate focus update. Unlike SetNeedsFocusUpdate(), this method may be called by any IUIFocusEnvironment, whether it currently contains focus or not.

(Inherited from UIView)
UpdateProperties() (Inherited from UIView)
UpdatePropertiesIfNeeded() (Inherited from UIView)
UpdateTextAttributes(UITextAttributesConversionHandler) (Inherited from UIResponder)
UpdateTraitsIfNeeded() (Inherited from UIView)
UpdateUserActivityState(NSUserActivity) (Inherited from UIResponder)
UseSelectionForFind(NSObject) (Inherited from UIResponder)
ValidateCommand(UICommand) (Inherited from UIResponder)
ValueForKey(NSString) (Inherited from NSObject)
ValueForKeyPath(NSString) (Inherited from NSObject)
ValueForUndefinedKey(NSString) (Inherited from NSObject)
ViewWithTag(IntPtr)

Returns the UIView identified by the tag. May return null.

(Inherited from UIView)
WillChange(NSKeyValueChange, NSIndexSet, NSString) (Inherited from NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) (Inherited from NSObject)
WillChangeValue(String) (Inherited from NSObject)
WillDrawLayer(CALayer)

Method that is called when layer is about to be drawn.

(Inherited from UIView)
WillMoveToSuperview(UIView) (Inherited from UIView)
WillMoveToWindow(UIWindow) (Inherited from UIView)
WillRemoveSubview(UIView) (Inherited from UIView)

Events

Name Description
BookmarkButtonClicked

Event raised by the object.

CancelButtonClicked

Event raised by the object.

ListButtonClicked

Event raised by the object.

OnEditingStarted

Event raised by the object.

OnEditingStopped

Event raised by the object.

SearchButtonClicked

Event raised by the object.

SelectedScopeButtonIndexChanged

Event raised by the object.

TextChanged

Event raised by the object.

Extension Methods

Name Description
BrowserAccessibilityDeleteTextAtCursor(NSObject, IntPtr)
BrowserAccessibilityInsertTextAtCursor(NSObject, String)
GetAccessibilityLineEndPositionFromCurrentSelection(NSObject)
GetAccessibilityLineRangeForPosition(NSObject, IntPtr)
GetAccessibilityLineStartPositionFromCurrentSelection(NSObject)
GetBrowserAccessibilityAttributedValue(NSObject, NSRange)
GetBrowserAccessibilityContainerType(NSObject)
GetBrowserAccessibilityCurrentStatus(NSObject)
GetBrowserAccessibilityHasDomFocus(NSObject)
GetBrowserAccessibilityIsRequired(NSObject)
GetBrowserAccessibilityPressedState(NSObject)
GetBrowserAccessibilityRoleDescription(NSObject)
GetBrowserAccessibilitySelectedTextRange(NSObject)
GetBrowserAccessibilitySortDirection(NSObject)
GetBrowserAccessibilityValue(NSObject, NSRange)
SetBrowserAccessibilityContainerType(NSObject, BEAccessibilityContainerType)
SetBrowserAccessibilityCurrentStatus(NSObject, String)
SetBrowserAccessibilityHasDomFocus(NSObject, Boolean)
SetBrowserAccessibilityIsRequired(NSObject, Boolean)
SetBrowserAccessibilityPressedState(NSObject, BEAccessibilityPressedState)
SetBrowserAccessibilityRoleDescription(NSObject, String)
SetBrowserAccessibilitySelectedTextRange(NSObject, NSRange)
SetBrowserAccessibilitySortDirection(NSObject, String)
ActionForLayer(ICALayerDelegate, CALayer, String)
DisplayLayer(ICALayerDelegate, CALayer)
DrawLayer(ICALayerDelegate, CALayer, CGContext)
LayoutSublayersOfLayer(ICALayerDelegate, CALayer)
WillDrawLayer(ICALayerDelegate, CALayer)

Method that is called when layer is about to be drawn.

ProvideImageData(NSObject, IntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
ProvideImageToMTLTexture(NSObject, IMTLTexture, IMTLCommandBuffer, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
SetSharedObservers(NSObject, NSKeyValueSharedObserversSnapshot)
GetDebugDescription(INSObjectProtocol)
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
GetPencilKitResponderState(UIResponder)
GetAccessibilityCustomRotors(NSObject)

Gets the array of UIAccessibilityCustomRotor objects appropriate for this object.

SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[])

Sets the array of UIAccessibilityCustomRotor objects appropriate for this object.

AccessibilityHitTest(NSObject, CGPoint, UIEvent)
GetAccessibilityNextTextNavigationElement(NSObject)
GetAccessibilityNextTextNavigationElementBlock(NSObject)
GetAccessibilityPreviousTextNavigationElement(NSObject)
GetAccessibilityPreviousTextNavigationElementBlock(NSObject)
SetAccessibilityNextTextNavigationElement(NSObject, NSObject)
SetAccessibilityNextTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
SetAccessibilityPreviousTextNavigationElement(NSObject, NSObject)
SetAccessibilityPreviousTextNavigationElementBlock(NSObject, AXObjectReturnBlock)
GetAccessibilityTextInputResponder(NSObject)
GetAccessibilityTextInputResponderHandler(NSObject)
SetAccessibilityTextInputResponder(NSObject, IUITextInput)
SetAccessibilityTextInputResponderHandler(NSObject, UITextInputReturnHandler)
GetCollisionBoundingPath(IUIDynamicItem)

Returns the closed path that is used for collision detection.

GetCollisionBoundsType(IUIDynamicItem)

Returns a value that tells how collision bounds are specified.

GetFocusGroupIdentifier(IUIFocusEnvironment)
GetPreferredFocusedView(IUIFocusEnvironment)

If not null, indicates the child UIView that should receive focus by default.

GetSoundIdentifier(IUIFocusEnvironment, UIFocusUpdateContext)
DidHintFocusMovement(IUIFocusItem, UIFocusMovementHint)

Called when a focus change may soon happen.

GetFocusEffect(IUIFocusItem)
GetFocusGroupPriority(IUIFocusItem)
GetFocusItemDeferralMode(IUIFocusItem)
GetIsTransparentFocusItem(IUIFocusItem)
CanPaste(IUIPasteConfigurationSupporting, NSItemProvider[])

Returns true if the responder can paste from the specified item providers.

Paste(IUIPasteConfigurationSupporting, NSItemProvider[])

Performs the paste.

GetFrame(IUIPopoverPresentationControllerSourceItem, UIView)
AlignCenter(IUIResponderStandardEditActions, NSObject)
AlignJustified(IUIResponderStandardEditActions, NSObject)
AlignLeft(IUIResponderStandardEditActions, NSObject)
AlignRight(IUIResponderStandardEditActions, NSObject)
Copy(IUIResponderStandardEditActions, NSObject)
Cut(IUIResponderStandardEditActions, NSObject)
DecreaseSize(IUIResponderStandardEditActions, NSObject)
Delete(IUIResponderStandardEditActions, NSObject)
Duplicate(IUIResponderStandardEditActions, NSObject)
Export(IUIResponderStandardEditActions, NSObject)
Find(IUIResponderStandardEditActions, NSObject)
FindAndReplace(IUIResponderStandardEditActions, NSObject)
FindNext(IUIResponderStandardEditActions, NSObject)
FindPrevious(IUIResponderStandardEditActions, NSObject)
IncreaseSize(IUIResponderStandardEditActions, NSObject)
MakeTextWritingDirectionLeftToRight(IUIResponderStandardEditActions, NSObject)
MakeTextWritingDirectionRightToLeft(IUIResponderStandardEditActions, NSObject)
Move(IUIResponderStandardEditActions, NSObject)
NewFromPasteboard(IUIResponderStandardEditActions, NSObject)
Paste(IUIResponderStandardEditActions, NSObject)
PasteAndGo(IUIResponderStandardEditActions, NSObject)
PasteAndMatchStyle(IUIResponderStandardEditActions, NSObject)
PasteAndSearch(IUIResponderStandardEditActions, NSObject)
PerformClose(IUIResponderStandardEditActions, NSObject)
Print(IUIResponderStandardEditActions, NSObject)
Rename(IUIResponderStandardEditActions, NSObject)
Select(IUIResponderStandardEditActions, NSObject)
SelectAll(IUIResponderStandardEditActions, NSObject)
ShowWritingTools(IUIResponderStandardEditActions, NSObject)
ToggleBoldface(IUIResponderStandardEditActions, NSObject)
ToggleInspector(IUIResponderStandardEditActions, NSObject)
ToggleItalics(IUIResponderStandardEditActions, NSObject)
ToggleSidebar(IUIResponderStandardEditActions, NSObject)
ToggleUnderline(IUIResponderStandardEditActions, NSObject)
UpdateTextAttributes(IUIResponderStandardEditActions, UITextAttributesConversionHandler)
UseSelectionForFind(IUIResponderStandardEditActions, NSObject)
GetAllowedWritingToolsResultOptions(IUITextInputTraits)
GetAllowsNumberPadPopover(IUITextInputTraits)
GetAutocapitalizationType(IUITextInputTraits)

The UITextAutocapitalizationType used by the IUITextInput.

GetAutocorrectionType(IUITextInputTraits)

The UITextAutocorrectionType used by the IUITextInput.

GetConversationContext(IUITextInputTraits)
GetEnablesReturnKeyAutomatically(IUITextInputTraits)

Whether the return key is automatically enabled.

GetInlinePredictionType(IUITextInputTraits)
GetKeyboardAppearance(IUITextInputTraits)

The UIKeyboardAppearance used by the IUITextInput

GetKeyboardType(IUITextInputTraits)

The UIKeyboardType used by the IUITextInput.

GetMathExpressionCompletionType(IUITextInputTraits)
GetPasswordRules(IUITextInputTraits)

The password entry rules.

GetReturnKeyType(IUITextInputTraits)

The form of the return key for the IUITextInput.

GetSecureTextEntry(IUITextInputTraits)

Whether the entered text should be hidden.

GetSmartDashesType(IUITextInputTraits)

The smart dashes style.

GetSmartInsertDeleteType(IUITextInputTraits)

The smart insert style.

GetSmartQuotesType(IUITextInputTraits)

The smart quotes style.

GetSpellCheckingType(IUITextInputTraits)

Gets or sets a value that tells whether spell-checking is on, off, or if spell-checking will be enabled only when auto-complete is enabled (default).

GetTextContentType(IUITextInputTraits)

The semantic of the expected input, which allows the system to, for example, provide custom keyboards.

GetWritingToolsBehavior(IUITextInputTraits)
SetAllowedWritingToolsResultOptions(IUITextInputTraits, UIWritingToolsResultOptions)
SetAllowsNumberPadPopover(IUITextInputTraits, Boolean)
SetAutocapitalizationType(IUITextInputTraits, UITextAutocapitalizationType)

The UITextAutocapitalizationType used by the IUITextInput.

SetAutocorrectionType(IUITextInputTraits, UITextAutocorrectionType)

The UITextAutocorrectionType used by the IUITextInput.

SetConversationContext(IUITextInputTraits, UIConversationContext)
SetEnablesReturnKeyAutomatically(IUITextInputTraits, Boolean)

Whether the return key is automatically enabled.

SetInlinePredictionType(IUITextInputTraits, UITextInlinePredictionType)
SetKeyboardAppearance(IUITextInputTraits, UIKeyboardAppearance)

The UIKeyboardAppearance used by the IUITextInput

SetKeyboardType(IUITextInputTraits, UIKeyboardType)

The UIKeyboardType used by the IUITextInput.

SetMathExpressionCompletionType(IUITextInputTraits, UITextMathExpressionCompletionType)
SetPasswordRules(IUITextInputTraits, UITextInputPasswordRules)

The password entry rules.

SetReturnKeyType(IUITextInputTraits, UIReturnKeyType)

The form of the return key for the IUITextInput.

SetSecureTextEntry(IUITextInputTraits, Boolean)

Whether the entered text should be hidden.

SetSmartDashesType(IUITextInputTraits, UITextSmartDashesType)

The smart dashes style.

SetSmartInsertDeleteType(IUITextInputTraits, UITextSmartInsertDeleteType)

The smart insert style.

SetSmartQuotesType(IUITextInputTraits, UITextSmartQuotesType)

The smart quotes style.

SetSpellCheckingType(IUITextInputTraits, UITextSpellCheckingType)

Gets or sets a value that tells whether spell-checking is on, off, or if spell-checking will be enabled only when auto-complete is enabled (default).

SetTextContentType(IUITextInputTraits, NSString)

The semantic of the expected input, which allows the system to, for example, provide custom keyboards.

SetWritingToolsBehavior(IUITextInputTraits, UIWritingToolsBehavior)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Selector)
RegisterForTraitChanges(IUITraitChangeObservable, Class[], Action<IUITraitEnvironment,UITraitCollection>)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], NSObject, Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Selector)
RegisterForTraitChanges(IUITraitChangeObservable, IUITraitDefinition[], Action<IUITraitEnvironment,UITraitCollection>)
EndEditing(UIView, Boolean)

Applies to