iOS Guides | Samples

MonoTouch.UIKit.UIBarItem Class

Base class for items added to the bars at the bottom of the screen.

See Also: UIBarItem

Syntax

[MonoTouch.Foundation.Register("UIBarItem", true)]
public abstract class UIBarItem : NSObject, INSCoding, IUIAccessibilityIdentification, IUIAppearance, IDisposable

Remarks

Items that appear in the bar at the bottom of the screen act like UIButtons.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIBarItem are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AccessibilityActivationPointPointF. Gets or sets the screen coordinates of the activation point for this IUIAccessibilityIdentification element.
AccessibilityElementsHiddenBoolean. Gets or sets whether accessibility elements contained in this IUIAccessibilityIdentification element are hidden.
AccessibilityFrameRectangleF. Gets or sets the screen coordinates of the frame of this IUIAccessibilityIdentification element.
AccessibilityHintString. Gets or sets a localized string that describes the result of an action.
AccessibilityIdentifierString. Gets or sets an identifier that identifies this IUIAccessibilityIdentification element.
AccessibilityLabelString. Gets or sets a localized string to identify this IUIAccessibilityIdentification element.
AccessibilityLanguageString. Gets or sets the language for the UIIMage.AccessibilityLabel, UIIMage.AccessibilityValue, and UIIMage.AccessibilityHint of this IUIAccessibilityIdentification element.
AccessibilityNavigationStyleUIAccessibilityNavigationStyle. Gets or sets the navigation style.
AccessibilityPathUIBezierPath. Specifies screen coordinates for the path of an element that is used to highlight the element.
AccessibilityTraitsUIAccessibilityTrait. Gets or sets the accessibility traits that best characterize this IUIAccessibilityIdentification element.
AccessibilityValueString. Specifies a localized string that contains the value of this IUIAccessibilityIdentification element.
AccessibilityViewIsModalBoolean. Gets or sets whether VoiceOver ignores elements in sibling views of this image object.
[read-only]
static
AnnouncementDidFinishNotificationNSString. Notification constant for AnnouncementDidFinish
[read-only]
static
AnnouncementNotificationInt32. Gets the notification posted by an application that an announcement requires assistive technology.
[read-only]
static
AppearanceUIBarItem+UIBarItemAppearance. Strongly-typed property that returns the UIAppearance class for this class.
[read-only]
static
AssistiveTechnologyKeyNSString. The string "UIAccessibilityAssistiveTechnologyKey" which can be used to distinguish accessibility notifications.
[read-only]
static
AssistiveTouchStatusDidChangeNotificationNSString. Notification constant for AssistiveTouchStatusDidChange
[read-only]
static
BoldTextStatusDidChangeNotificationNSString. Notification constant for BoldTextStatusDidChange
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
ClosedCaptioningStatusDidChangeNotificationNSString. Notification constant for ClosedCaptioningStatusDidChange
[read-only]
static
DarkerSystemColorsStatusDidChangeNotificationNSString. Notification constant for DarkerSystemColorsStatusDidChange
[read-only]
static
ElementFocusedNotificationNSString. Notification constant for ElementFocused
abstract
EnabledBoolean. Whether this UIBarItem is enabled.
[read-only]
static
FocusedElementKeyNSString. A string constant used by accessibility APIs (see UIAccessibility.FocusedElement) to identify the focused element.
[read-only]
static
GrayscaleStatusDidChangeNotificationNSString. Notification constant for GrayscaleStatusDidChange
[read-only]
static
GuidedAccessStatusDidChangeNotificationNSString. Notification constant for GuidedAccessStatusDidChange
[read-only]
static
HearingDevicePairedEarDidChangeNotificationNSString. Notification constant for HearingDevicePairedEarDidChange
abstract
ImageUIImage. The image used to represent this UIBarItem.
abstract
ImageInsetsUIEdgeInsets. The inset (or outset) for each edge.
[read-only]
static
InvertColorsStatusDidChangeNotificationNSString. Notification constant for InvertColorsStatusDidChange
IsAccessibilityElementBoolean. Gets or sets whether this item is an accessibility object that an assistive app can access.
LandscapeImagePhoneUIImage. The image to use to represent the item in landscape when using the iPhone appearance idiom.
LandscapeImagePhoneInsetsUIEdgeInsets. The inset (or outset) for each edge in landscape orientation when using the iPhone appearance idiom.
[read-only]
static
LayoutChangedNotificationInt32. Gets the notification posted by an application that the layout of a screen has changed.
[read-only]
static
MonoAudioStatusDidChangeNotificationNSString. Notification constant for MonoAudioStatusDidChange
[read-only]
static
NotificationSwitchControlIdentifierNSString. Notification constant for NotificationSwitchContr
[read-only]
static
NotificationVoiceOverIdentifierNSString. Notification constant for NotificationVoiceOv
[read-only]
static
PageScrolledNotificationInt32. Gets the notification posted by an application that a scroll action has finished.
[read-only]
static
PauseAssistiveTechnologyNotificationInt32. Pauses assistive technology notifications.
[read-only]
static
ReduceMotionStatusDidChangeNotificationNSString. Notification constant for ReduceMotionStatusDidChange
[read-only]
static
ReduceTransparencyStatusDidChangeNotificationNSString. Notification constant for ReduceTransparencyStatusDidChange
[read-only]
static
ResumeAssistiveTechnologyNotificationInt32. Resumes assistive technology notifications.
[read-only]
static
ScreenChangedNotificationInt32. Gets the notification posted by an application that a new view appears that includes a major portion of the screen.
[read-only]
static
ShakeToUndoDidChangeNotificationNSString. Notification constant for ShakeToUndoDidChange
ShouldGroupAccessibilityChildrenBoolean. Gets or sets whether VoiceOver groups elements that are children of this object regardless of their positions.
[read-only]
static
SpeakScreenStatusDidChangeNotificationNSString. Notification constant for SpeakScreenStatusDidChange
[read-only]
static
SpeakSelectionStatusDidChangeNotificationNSString. Notification constant for SpeakSelectionStatusDidChange
[read-only]
static
SpeechAttributeLanguageNSString. Gets a BCP-47 language code.
[read-only]
static
SpeechAttributePitchNSString. Gets the value from 0.0 to 2.0 that determines the pitch for a spoken string.
[read-only]
static
SpeechAttributePunctuationNSString. Gets a value to be interpreted as a bool that determines whether the punctuation in a string is pronounced.
[read-only]
static
SwitchControlStatusDidChangeNotificationNSString. Notification constant for SwitchControlStatusDidChange
abstract
TagInt32. A developer-meaningful integer that can be used to identify specific UIBarItem's within the application.
abstract
TitleString. The title displayed on this UIBarItem.
[read-only]
static
TraitAdjustableInt64. Gets a trait that allows continuous adjustment of an accessibility element through a range of values.
[read-only]
static
TraitAllowsDirectInteractionInt64. Gets a trait that allows direct touch interaction for users.
[read-only]
static
TraitButtonInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element should be treated as a button.
[read-only]
static
TraitCausesPageTurnInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element should turn the page when VoiceOver finishes that page.
[read-only]
static
TraitHeaderInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element is a header that divides content into sections.
[read-only]
static
TraitImageInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element should be treated as an image.
[read-only]
static
TraitKeyboardKeyInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element acts like a keyboard key.
[read-only]
static
TraitLinkInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element should be considered a link.
[read-only]
static
TraitNoneInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element has no traits.
[read-only]
static
TraitNotEnabledInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element is not enabled.
[read-only]
static
TraitPlaysSoundInt64. Gets a trait that indicates that this IUIAccessibilityIdentification elements plays its own sound when activated.
[read-only]
static
TraitSearchFieldInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element should be considered a search field.
[read-only]
static
TraitSelectedInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element is selected.
[read-only]
static
TraitStartsMediaSessionInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element starts a media session when it is activated.
[read-only]
static
TraitStaticTextInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element should be treated as static text.
[read-only]
static
TraitSummaryElementInt64. Gets a trait that provides summary information when an application starts.
[read-only]
static
TraitTabBarInt64.
[read-only]
static
TraitUpdatesFrequentlyInt64. Gets a trait that indicates that this IUIAccessibilityIdentification element updates its UIIMage.AccessibilityLabel or UIIMage.AccessibilityValue.
[read-only]
static
UnfocusedElementKeyNSString. A string constant used by accessibility APIs (see UIAccessibility.FocusedElement) to identify the previously focused element.
[read-only]
static
VoiceOverStatusChangedNSString. Gets a notification that VoiceOver starts or stops.

Public Methods

AccessibilityActivate() : Boolean
Activates accessibility for this UIView, returning true on success.
static
AppearanceWhenContainedIn(params Type[]) : UIBarItem+UIBarItemAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
static
GetAppearance(UITraitCollection) : UIBarItem+UIBarItemAppearance
Returns an appearance proxy for the specified traits.
static
GetAppearance(UITraitCollection, params Type[]) : UIBarItem+UIBarItemAppearance
Returns an appearance proxy for the specified traits.
static
GetAppearance<T>() : UIBarItem+UIBarItemAppearance
Obtains the appearance proxy UIBarItemAppearance for the subclass of UIBarItem.
static
GetAppearance<T>(UITraitCollection) : UIBarItem+UIBarItemAppearance
Obtains the appearance proxy UIBarItemAppearance for the subclass of UIBarItem.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UIBarItem+UIBarItemAppearance
Obtains the appearance proxy UIBarItemAppearance for the subclass of UIBarItem that has the specified trait collection when the view is hosted in the specified hierarchy.
GetTitleTextAttributes(UIControlState) : UITextAttributes
The text attributes of the title of the UIBarItem.
SetTitleTextAttributes(UITextAttributes, UIControlState)
Specifies the text attributes of the title of the UIBarItem.