UIBarButtonItem extension type
UIBarButtonItem
- on
-
- ObjCObject
- Implemented types
- Available extensions
Constructors
- UIBarButtonItem()
-
Returns a new instance of UIBarButtonItem constructed with the default
newmethod. - UIBarButtonItem.as(ObjCObject other)
-
Constructs a UIBarButtonItem that points to the same underlying object as
other. -
UIBarButtonItem.fromPointer(Pointer<
ObjCObjectImpl> other, {bool retain = false, bool release = false}) - Constructs a UIBarButtonItem that wraps the given raw object pointer.
Properties
-
action
↔ Pointer<
ObjCSelector> -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
actiongetter/setter pair -
Available on UIBarButtonItem, provided by the UIBarButtonItemGroup extension
The group that the UIBarButtonItem is currently associated with, either as a member of the barButtonItems array or as that group's representativeItem.no setter - changesSelectionAsPrimaryAction ↔ bool
-
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
Indicates if the button changes selection as its primary action. This shows the menu as options for selection if a menu is populated and no action when tapped is enabled. If no menu is provided and no action is enabled when tapped, the item is toggled on and off for the primary action.getter/setter pair - customView ↔ UIView?
-
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
customViewgetter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- image ↔ UIImage?
-
Available on UIBarItem, provided by the UIBarItem$Methods extension
imagegetter/setter pair - imageInsets ↔ UIEdgeInsets
-
Available on UIBarItem, provided by the UIBarItem$Methods extension
imageInsetsgetter/setter pair - isEnabled ↔ bool
-
Available on UIBarItem, provided by the UIBarItem$Methods extension
isEnabledgetter/setter pair - isSelected ↔ bool
-
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
isSelectedgetter/setter pair - landscapeImagePhone ↔ UIImage?
-
Available on UIBarItem, provided by the UIBarItem$Methods extension
landscapeImagePhonegetter/setter pair - landscapeImagePhoneInsets ↔ UIEdgeInsets
-
Available on UIBarItem, provided by the UIBarItem$Methods extension
landscapeImagePhoneInsetsgetter/setter pair - largeContentSizeImage ↔ UIImage?
-
Available on UIBarItem, provided by the UIBarItem$Methods extension
largeContentSizeImagegetter/setter pair - largeContentSizeImageInsets ↔ UIEdgeInsets
-
Available on UIBarItem, provided by the UIBarItem$Methods extension
largeContentSizeImageInsetsgetter/setter pair -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
When non-nil the menu is presented, the gesture used to trigger the menu is based on if the bar button item would normally trigger an action when tapped.getter/setter pair - object$ → ObjCObject
-
final
- possibleTitles ↔ NSSet?
-
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
possibleTitlesgetter/setter pair - primaryAction ↔ UIAction?
-
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
Set the primaryAction on this item, updating the title & image of the item if appropriate (primaryAction is non-nil, and this is not a system item). When primaryAction is non-nil, the target & action properties are ignored. If primaryAction is set to nil, the title & image properties are left unchanged.getter/setter pair - ref → ObjCObjectRef
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style ↔ UIBarButtonItemStyle
-
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
stylegetter/setter pair - tag ↔ int
-
Available on UIBarItem, provided by the UIBarItem$Methods extension
taggetter/setter pair - target ↔ ObjCObject?
-
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
targetgetter/setter pair - tintColor ↔ UIColor?
-
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
tintColorgetter/setter pair - title ↔ NSString?
-
Available on UIBarItem, provided by the UIBarItem$Methods extension
titlegetter/setter pair - width ↔ double
-
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
widthgetter/setter pair
Methods
-
backButtonBackgroundImageForState(
int state, {required UIBarMetrics barMetrics}) → UIImage? -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
backButtonBackgroundImageForState:barMetrics: -
backButtonBackgroundVerticalPositionAdjustmentForBarMetrics(
UIBarMetrics barMetrics) → double -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
backButtonBackgroundVerticalPositionAdjustmentForBarMetrics: -
backButtonTitlePositionAdjustmentForBarMetrics(
UIBarMetrics barMetrics) → UIOffset -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
backButtonTitlePositionAdjustmentForBarMetrics: -
backgroundImageForState(
int state, {required UIBarMetrics barMetrics}) → UIImage? -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
backgroundImageForState:barMetrics: -
backgroundImageForState$1(
int state, {required UIBarButtonItemStyle style, required UIBarMetrics barMetrics}) → UIImage? -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
backgroundImageForState:style:barMetrics: -
backgroundVerticalPositionAdjustmentForBarMetrics(
UIBarMetrics barMetrics) → double -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
backgroundVerticalPositionAdjustmentForBarMetrics: -
encodeWithCoder(
NSCoder coder) → void -
Available on UIBarItem, provided by the UIBarItem$Methods extension
encodeWithCoder: -
encodeWithCoder(
NSCoder coder) → void -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
encodeWithCoder: -
init(
) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
init -
init(
) → UIBarItem -
Available on UIBarItem, provided by the UIBarItem$Methods extension
init -
initWithBarButtonSystemItem(
UIBarButtonSystemItem systemItem, {}) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
Creates a bar button item for the given systemItem. The constructed item will present the menu immediately when touched. -
initWithBarButtonSystemItem$1(
UIBarButtonSystemItem systemItem, {UIAction? primaryAction}) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
Creates a bar button item for the given systemItem. The primaryAction is copied, and its title & image are ignored. -
initWithBarButtonSystemItem$2(
UIBarButtonSystemItem systemItem, {ObjCObject? target, required Pointer< ObjCSelector> action}) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
initWithBarButtonSystemItem:target:action: -
initWithCoder(
NSCoder coder) → UIBarButtonItem? -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
initWithCoder: -
initWithCoder(
NSCoder coder) → UIBarItem? -
Available on UIBarItem, provided by the UIBarItem$Methods extension
initWithCoder: -
initWithCustomView(
UIView customView) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
initWithCustomView: -
initWithImage(
UIImage? image, {UIImage? landscapeImagePhone, required UIBarButtonItemStyle style, ObjCObject? target, required Pointer< ObjCSelector> action}) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
initWithImage:landscapeImagePhone:style:target:action: -
initWithImage$1(
UIImage? image, {}) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
Creates a plain-style bar button item with the given item. The constructed item will present the menu immediately when touched. -
initWithImage$2(
UIImage? image, {required UIBarButtonItemStyle style, ObjCObject? target, required Pointer< ObjCSelector> action}) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
initWithImage:style:target:action: -
initWithPrimaryAction(
UIAction? primaryAction) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
Creates a plain-style bar button item from the properties of primaryAction. primaryAction is copied. -
initWithTitle(
NSString? title, {}) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
Creates a plain-style bar button item with the given title. The constructed item will present the menu immediately when touched. -
initWithTitle$1(
NSString? title, {required UIBarButtonItemStyle style, ObjCObject? target, required Pointer< ObjCSelector> action}) → UIBarButtonItem -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
initWithTitle:style:target:action: -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBackButtonBackgroundImage(
UIImage? backgroundImage, {required int forState, required UIBarMetrics barMetrics}) → void -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
setBackButtonBackgroundImage:forState:barMetrics: -
setBackButtonBackgroundVerticalPositionAdjustment(
double adjustment, {required UIBarMetrics forBarMetrics}) → void -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
setBackButtonBackgroundVerticalPositionAdjustment:forBarMetrics: -
setBackButtonTitlePositionAdjustment(
UIOffset adjustment, {required UIBarMetrics forBarMetrics}) → void -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
setBackButtonTitlePositionAdjustment:forBarMetrics: -
setBackgroundImage(
UIImage? backgroundImage, {required int forState, required UIBarMetrics barMetrics}) → void -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
setBackgroundImage:forState:barMetrics: -
setBackgroundImage$1(
UIImage? backgroundImage, {required int forState, required UIBarButtonItemStyle style, required UIBarMetrics barMetrics}) → void -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
setBackgroundImage:forState:style:barMetrics: -
setBackgroundVerticalPositionAdjustment(
double adjustment, {required UIBarMetrics forBarMetrics}) → void -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
setBackgroundVerticalPositionAdjustment:forBarMetrics: -
setTitlePositionAdjustment(
UIOffset adjustment, {required UIBarMetrics forBarMetrics}) → void -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
setTitlePositionAdjustment:forBarMetrics: -
setTitleTextAttributes(
NSDictionary? attributes, {required int forState}) → void -
Available on UIBarItem, provided by the UIBarItem$Methods extension
setTitleTextAttributes:forState: -
titlePositionAdjustmentForBarMetrics(
UIBarMetrics barMetrics) → UIOffset -
Available on UIBarButtonItem, provided by the UIBarButtonItem$Methods extension
titlePositionAdjustmentForBarMetrics: -
titleTextAttributesForState(
int state) → NSDictionary? -
Available on UIBarItem, provided by the UIBarItem$Methods extension
titleTextAttributesForState: -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
alloc(
) → UIBarButtonItem - alloc
-
allocWithZone(
Pointer< NSZone> zone) → UIBarButtonItem - allocWithZone:
-
appearance(
) → UIBarButtonItem - appearance
-
appearanceForTraitCollection(
UITraitCollection trait) → UIBarButtonItem - appearanceForTraitCollection:
-
appearanceForTraitCollection$1(
UITraitCollection trait, {UIAppearanceContainer? whenContainedIn}) → UIBarButtonItem - appearanceForTraitCollection:whenContainedIn:
-
appearanceForTraitCollection$2(
UITraitCollection trait, {required NSArray whenContainedInInstancesOfClasses}) → UIBarButtonItem - appearanceForTraitCollection:whenContainedInInstancesOfClasses:
-
appearanceWhenContainedIn(
UIAppearanceContainer? ContainerClass) → UIBarButtonItem - appearanceWhenContainedIn:
-
appearanceWhenContainedInInstancesOfClasses(
NSArray containerTypes) → UIBarButtonItem - appearanceWhenContainedInInstancesOfClasses:
-
fixedSpaceItemOfWidth(
double width) → UIBarButtonItem - Construct a new fixed space item with the given width.
-
flexibleSpaceItem(
) → UIBarButtonItem - Construct a new flexible space item.
-
isA(
ObjCObject obj) → bool -
Returns whether
objis an instance of UIBarButtonItem. -
new$(
) → UIBarButtonItem - new