backgroundImage
TypeScriptbackgroundImageForBarMetrics(barPosition: UIBarPosition, barMetrics: UIBarMetrics): Promise<(UIImage) | null>Swift declarationfunc backgroundImage(for barPosition: UIBarPosition, barMetrics: UIBarMetrics) -> UIImage?class · iOS 2.0+ · SDK 27.1
@MainActor class UISearchBarbackgroundImageForBarMetrics(barPosition: UIBarPosition, barMetrics: UIBarMetrics): Promise<(UIImage) | null>Swift declarationfunc backgroundImage(for barPosition: UIBarPosition, barMetrics: UIBarMetrics) -> UIImage?image(icon: UISearchBar_Icon, state: UIControl_State): Promise<(UIImage) | null>Swift declarationfunc image(for icon: UISearchBar.Icon, state: UIControl.State) -> UIImage?static init(): Promise<UISearchBar>Swift declarationconvenience init()static initCoder(coder: _Foundation_NSCoder): Promise<(UISearchBar) | null>Swift declarationinit?(coder: NSCoder)static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<UISearchBar>Swift declarationinit(frame: CGRect)positionAdjustment(icon: UISearchBar_Icon): Promise<UIOffset>Swift declarationfunc positionAdjustment(for icon: UISearchBar.Icon) -> UIOffsetscopeBarButtonBackgroundImage(state: UIControl_State): Promise<(UIImage) | null>Swift declarationfunc scopeBarButtonBackgroundImage(for state: UIControl.State) -> UIImage?scopeBarButtonDividerImage(leftState: UIControl_State, rightState: UIControl_State): Promise<(UIImage) | null>Swift declarationfunc scopeBarButtonDividerImage(forLeftSegmentState leftState: UIControl.State, rightSegmentState rightState: UIControl.State) -> UIImage?scopeBarButtonTitleTextAttributes(state: UIControl_State): Promise<(NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null>Swift declarationfunc scopeBarButtonTitleTextAttributes(for state: UIControl.State) -> [NSAttributedString.Key : Any]?searchFieldBackgroundImage(state: UIControl_State): Promise<(UIImage) | null>Swift declarationfunc searchFieldBackgroundImage(for state: UIControl.State) -> UIImage?setBackgroundImage(backgroundImage: (UIImage) | null, barPosition: UIBarPosition, barMetrics: UIBarMetrics): Promise<void>Swift declarationfunc setBackgroundImage(_ backgroundImage: UIImage?, for barPosition: UIBarPosition, barMetrics: UIBarMetrics)setImage(iconImage: (UIImage) | null, icon: UISearchBar_Icon, state: UIControl_State): Promise<void>Swift declarationfunc setImage(_ iconImage: UIImage?, for icon: UISearchBar.Icon, state: UIControl.State)setPositionAdjustment(adjustment: UIOffset, icon: UISearchBar_Icon): Promise<void>Swift declarationfunc setPositionAdjustment(_ adjustment: UIOffset, for icon: UISearchBar.Icon)setScopeBarButtonBackgroundImage(backgroundImage: (UIImage) | null, state: UIControl_State): Promise<void>Swift declarationfunc setScopeBarButtonBackgroundImage(_ backgroundImage: UIImage?, for state: UIControl.State)setScopeBarButtonDividerImage(dividerImage: (UIImage) | null, leftState: UIControl_State, rightState: UIControl_State): Promise<void>Swift declarationfunc setScopeBarButtonDividerImage(_ dividerImage: UIImage?, forLeftSegmentState leftState: UIControl.State, rightSegmentState rightState: UIControl.State)setScopeBarButtonTitleTextAttributes(attributes: (NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null, state: UIControl_State): Promise<void>Swift declarationfunc setScopeBarButtonTitleTextAttributes(_ attributes: [NSAttributedString.Key : Any]?, for state: UIControl.State)setSearchFieldBackgroundImage(backgroundImage: (UIImage) | null, state: UIControl_State): Promise<void>Swift declarationfunc setSearchFieldBackgroundImage(_ backgroundImage: UIImage?, for state: UIControl.State)setShowsCancelButton(showsCancelButton: boolean, animated: boolean): Promise<void>Swift declarationfunc setShowsCancelButton(_ showsCancelButton: Bool, animated: Bool)setShowsScope(show: boolean, animate: boolean): Promise<void>Swift declarationfunc setShowsScope(_ show: Bool, animated animate: Bool)get backgroundImage(): Promise<(UIImage) | null>Swift declarationvar backgroundImage: UIImage? { get set }setBackgroundImage39381(value?: (UIImage) | null): Promise<void>Swift declarationvar backgroundImage: UIImage? { get set }get barStyle(): Promise<UIBarStyle>Swift declarationvar barStyle: UIBarStyle { get set }setBarStyle(value: UIBarStyle): Promise<void>Swift declarationvar barStyle: UIBarStyle { get set }get barTintColor(): Promise<(UIColor) | null>Swift declarationvar barTintColor: UIColor? { get set }setBarTintColor(value?: (UIColor) | null): Promise<void>Swift declarationvar barTintColor: UIColor? { get set }get delegate(): Promise<(SDKHandle) | null>Swift declarationweak var delegate: (any UISearchBarDelegate)? { get set }setDelegate(value?: (Implements<UISearchBarDelegate> | SDKHandle) | null): Promise<void>Swift declarationweak var delegate: (any UISearchBarDelegate)? { get set }get isEnabled(): Promise<boolean>Swift declarationvar isEnabled: Bool { get set }setIsEnabled(value: boolean): Promise<void>Swift declarationvar isEnabled: Bool { get set }get inputAccessoryView(): Promise<(UIView) | null>Swift declarationvar inputAccessoryView: UIView? { get set }setInputAccessoryView(value?: (UIView) | null): Promise<void>Swift declarationvar inputAccessoryView: UIView? { get set }get inputAssistantItem(): Promise<UITextInputAssistantItem>Swift declarationvar inputAssistantItem: UITextInputAssistantItem { get }get isLookToDictateEnabled(): Promise<boolean>Swift declarationvar isLookToDictateEnabled: Bool { get set }setIsLookToDictateEnabled(value: boolean): Promise<void>Swift declarationvar isLookToDictateEnabled: Bool { get set }get placeholder(): Promise<(string) | null>Swift declarationvar placeholder: String? { get set }setPlaceholder(value?: (string) | null): Promise<void>Swift declarationvar placeholder: String? { get set }get prompt(): Promise<(string) | null>Swift declarationvar prompt: String? { get set }setPrompt(value?: (string) | null): Promise<void>Swift declarationvar prompt: String? { get set }get scopeBarBackgroundImage(): Promise<(UIImage) | null>Swift declarationvar scopeBarBackgroundImage: UIImage? { get set }setScopeBarBackgroundImage(value?: (UIImage) | null): Promise<void>Swift declarationvar scopeBarBackgroundImage: UIImage? { get set }get scopeButtonTitles(): Promise<(Array<string>) | null>Swift declarationvar scopeButtonTitles: [String]? { get set }setScopeButtonTitles(value?: (Array<string>) | null): Promise<void>Swift declarationvar scopeButtonTitles: [String]? { get set }get searchBarStyle(): Promise<UISearchBar_Style>Swift declarationvar searchBarStyle: UISearchBar.Style { get set }setSearchBarStyle(value: UISearchBar_Style): Promise<void>Swift declarationvar searchBarStyle: UISearchBar.Style { get set }get searchFieldBackgroundPositionAdjustment(): Promise<UIOffset>Swift declarationvar searchFieldBackgroundPositionAdjustment: UIOffset { get set }setSearchFieldBackgroundPositionAdjustment(value: UIOffset): Promise<void>Swift declarationvar searchFieldBackgroundPositionAdjustment: UIOffset { get set }get isSearchResultsButtonSelected(): Promise<boolean>Swift declarationvar isSearchResultsButtonSelected: Bool { get set }setIsSearchResultsButtonSelected(value: boolean): Promise<void>Swift declarationvar isSearchResultsButtonSelected: Bool { get set }get searchTextField(): Promise<UISearchTextField>Swift declarationvar searchTextField: UISearchTextField { get }get searchTextPositionAdjustment(): Promise<UIOffset>Swift declarationvar searchTextPositionAdjustment: UIOffset { get set }setSearchTextPositionAdjustment(value: UIOffset): Promise<void>Swift declarationvar searchTextPositionAdjustment: UIOffset { get set }get selectedScopeButtonIndex(): Promise<number>Swift declarationvar selectedScopeButtonIndex: Int { get set }setSelectedScopeButtonIndex(value: number): Promise<void>Swift declarationvar selectedScopeButtonIndex: Int { get set }get showsBookmarkButton(): Promise<boolean>Swift declarationvar showsBookmarkButton: Bool { get set }setShowsBookmarkButton(value: boolean): Promise<void>Swift declarationvar showsBookmarkButton: Bool { get set }get showsCancelButton(): Promise<boolean>Swift declarationvar showsCancelButton: Bool { get set }setShowsCancelButton52980(value: boolean): Promise<void>Swift declarationvar showsCancelButton: Bool { get set }get showsScopeBar(): Promise<boolean>Swift declarationvar showsScopeBar: Bool { get set }setShowsScopeBar(value: boolean): Promise<void>Swift declarationvar showsScopeBar: Bool { get set }get showsSearchResultsButton(): Promise<boolean>Swift declarationvar showsSearchResultsButton: Bool { get set }setShowsSearchResultsButton(value: boolean): Promise<void>Swift declarationvar showsSearchResultsButton: Bool { get set }get text(): Promise<(string) | null>Swift declarationvar text: String? { get set }setText(value?: (string) | null): Promise<void>Swift declarationvar text: String? { get set }get tintColor(): Promise<(UIColor) | null>Swift declarationvar tintColor: UIColor! { get set }setTintColor(value?: (UIColor) | null): Promise<void>Swift declarationvar tintColor: UIColor! { get set }get isTranslucent(): Promise<boolean>Swift declarationvar isTranslucent: Bool { get set }setIsTranslucent(value: boolean): Promise<void>Swift declarationvar isTranslucent: Bool { get set }No declarations were skipped in this snapshot.