noSegment
TypeScriptstatic get noSegment(): Promise<number>Swift declarationclass var noSegment: Int { get }class · iOS 2.0+ · SDK 27.1
@MainActor class UISegmentedControlstatic get noSegment(): Promise<number>Swift declarationclass var noSegment: Int { get }actionForSegment(segment: number): Promise<(UIAction) | null>Swift declarationfunc actionForSegment(at segment: Int) -> UIAction?backgroundImage(state: UIControl_State, barMetrics: UIBarMetrics): Promise<(UIImage) | null>Swift declarationfunc backgroundImage(for state: UIControl.State, barMetrics: UIBarMetrics) -> UIImage?contentOffsetForSegment(segment: number): Promise<{ width: number; height: number }>Swift declarationfunc contentOffsetForSegment(at segment: Int) -> CGSizecontentPositionAdjustment(leftCenterRightOrAlone: UISegmentedControl_Segment, barMetrics: UIBarMetrics): Promise<UIOffset>Swift declarationfunc contentPositionAdjustment(forSegmentType leftCenterRightOrAlone: UISegmentedControl.Segment, barMetrics: UIBarMetrics) -> UIOffsetdividerImage(leftState: UIControl_State, rightState: UIControl_State, barMetrics: UIBarMetrics): Promise<(UIImage) | null>Swift declarationfunc dividerImage(forLeftSegmentState leftState: UIControl.State, rightSegmentState rightState: UIControl.State, barMetrics: UIBarMetrics) -> UIImage?imageForSegment(segment: number): Promise<(UIImage) | null>Swift declarationfunc imageForSegment(at segment: Int) -> UIImage?static initCoder(coder: _Foundation_NSCoder): Promise<(UISegmentedControl) | null>Swift declarationinit?(coder: NSCoder)static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<UISegmentedControl>Swift declarationinit(frame: CGRect)static initFrameActions(frame: { x: number; y: number; width: number; height: number }, actions: Array<UIAction>): Promise<UISegmentedControl>Swift declarationconvenience init(frame: CGRect, actions: [UIAction])static initItems(items?: (Array<unknown>) | null): Promise<UISegmentedControl>Swift declarationinit(items: [Any]?)insertSegmentActionAtAnimated(action: UIAction, segment: number, animated: boolean): Promise<void>Swift declarationfunc insertSegment(action: UIAction, at segment: Int, animated: Bool)insertSegmentWithAtAnimated(image: (UIImage) | null, segment: number, animated: boolean): Promise<void>Swift declarationfunc insertSegment(with image: UIImage?, at segment: Int, animated: Bool)insertSegmentWithTitleAtAnimated(title: (string) | null, segment: number, animated: boolean): Promise<void>Swift declarationfunc insertSegment(withTitle title: String?, at segment: Int, animated: Bool)isEnabledForSegment(segment: number): Promise<boolean>Swift declarationfunc isEnabledForSegment(at segment: Int) -> BoolremoveAllSegments(): Promise<void>Swift declarationfunc removeAllSegments()removeSegment(segment: number, animated: boolean): Promise<void>Swift declarationfunc removeSegment(at segment: Int, animated: Bool)segmentIndex(actionIdentifier: UIAction_Identifier): Promise<number>Swift declarationfunc segmentIndex(identifiedBy actionIdentifier: UIAction.Identifier) -> IntsetAction(action: UIAction, segment: number): Promise<void>Swift declarationfunc setAction(_ action: UIAction, forSegmentAt segment: Int)setBackgroundImage(backgroundImage: (UIImage) | null, state: UIControl_State, barMetrics: UIBarMetrics): Promise<void>Swift declarationfunc setBackgroundImage(_ backgroundImage: UIImage?, for state: UIControl.State, barMetrics: UIBarMetrics)setContentOffset(offset: { width: number; height: number }, segment: number): Promise<void>Swift declarationfunc setContentOffset(_ offset: CGSize, forSegmentAt segment: Int)setContentPositionAdjustment(adjustment: UIOffset, leftCenterRightOrAlone: UISegmentedControl_Segment, barMetrics: UIBarMetrics): Promise<void>Swift declarationfunc setContentPositionAdjustment(_ adjustment: UIOffset, forSegmentType leftCenterRightOrAlone: UISegmentedControl.Segment, barMetrics: UIBarMetrics)setDividerImage(dividerImage: (UIImage) | null, leftState: UIControl_State, rightState: UIControl_State, barMetrics: UIBarMetrics): Promise<void>Swift declarationfunc setDividerImage(_ dividerImage: UIImage?, forLeftSegmentState leftState: UIControl.State, rightSegmentState rightState: UIControl.State, barMetrics: UIBarMetrics)setEnabled(enabled: boolean, segment: number): Promise<void>Swift declarationfunc setEnabled(_ enabled: Bool, forSegmentAt segment: Int)setImage(image: (UIImage) | null, segment: number): Promise<void>Swift declarationfunc setImage(_ image: UIImage?, forSegmentAt segment: Int)setTitle(title: (string) | null, segment: number): Promise<void>Swift declarationfunc setTitle(_ title: String?, forSegmentAt segment: Int)setTitleTextAttributes(attributes: (NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null, state: UIControl_State): Promise<void>Swift declarationfunc setTitleTextAttributes(_ attributes: [NSAttributedString.Key : Any]?, for state: UIControl.State)setWidth(width: number, segment: number): Promise<void>Swift declarationfunc setWidth(_ width: CGFloat, forSegmentAt segment: Int)titleForSegment(segment: number): Promise<(string) | null>Swift declarationfunc titleForSegment(at segment: Int) -> String?titleTextAttributes(state: UIControl_State): Promise<(NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null>Swift declarationfunc titleTextAttributes(for state: UIControl.State) -> [NSAttributedString.Key : Any]?widthForSegment(segment: number): Promise<number>Swift declarationfunc widthForSegment(at segment: Int) -> CGFloatget apportionsSegmentWidthsByContent(): Promise<boolean>Swift declarationvar apportionsSegmentWidthsByContent: Bool { get set }setApportionsSegmentWidthsByContent(value: boolean): Promise<void>Swift declarationvar apportionsSegmentWidthsByContent: Bool { get set }get isMomentary(): Promise<boolean>Swift declarationvar isMomentary: Bool { get set }setIsMomentary(value: boolean): Promise<void>Swift declarationvar isMomentary: Bool { get set }get numberOfSegments(): Promise<number>Swift declarationvar numberOfSegments: Int { get }get selectedSegmentIndex(): Promise<number>Swift declarationvar selectedSegmentIndex: Int { get set }setSelectedSegmentIndex(value: number): Promise<void>Swift declarationvar selectedSegmentIndex: Int { get set }get selectedSegmentTintColor(): Promise<(UIColor) | null>Swift declarationvar selectedSegmentTintColor: UIColor? { get set }setSelectedSegmentTintColor(value?: (UIColor) | null): Promise<void>Swift declarationvar selectedSegmentTintColor: UIColor? { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UISegmentedControl.init()
inherited init: cannot prove legal (class declares 3 custom initializers)