Class UIBarItem

All Implemented Interfaces:
NSCoding, NSObjectProtocol, UIAppearanceContainer, ObjCProtocol
Direct Known Subclasses:
UIBarButtonItem, UITabBarItem

public class UIBarItem
extends NSObject
implements NSCoding, UIAppearanceContainer
  • Constructor Details

    • UIBarItem

      public UIBarItem()
    • UIBarItem

      protected UIBarItem​(NSObject.Handle h, long handle)
    • UIBarItem

      protected UIBarItem​(NSObject.SkipInit skipInit)
    • UIBarItem

      public UIBarItem​(NSCoder coder)
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled​(boolean v)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle​(String v)
    • getImage

      public UIImage getImage()
    • setImage

      public void setImage​(UIImage v)
    • getLandscapeImagePhone

      public UIImage getLandscapeImagePhone()
    • setLandscapeImagePhone

      public void setLandscapeImagePhone​(UIImage v)
    • getLargeContentSizeImage

      public UIImage getLargeContentSizeImage()
      Since:
      Available in iOS 11.0 and later.
    • setLargeContentSizeImage

      public void setLargeContentSizeImage​(UIImage v)
      Since:
      Available in iOS 11.0 and later.
    • getImageInsets

      public UIEdgeInsets getImageInsets()
    • setImageInsets

      public void setImageInsets​(UIEdgeInsets v)
    • getLandscapeImagePhoneInsets

      public UIEdgeInsets getLandscapeImagePhoneInsets()
    • setLandscapeImagePhoneInsets

      public void setLandscapeImagePhoneInsets​(UIEdgeInsets v)
    • getLargeContentSizeImageInsets

      public UIEdgeInsets getLargeContentSizeImageInsets()
      Since:
      Available in iOS 11.0 and later.
    • setLargeContentSizeImageInsets

      public void setLargeContentSizeImageInsets​(UIEdgeInsets v)
      Since:
      Available in iOS 11.0 and later.
    • getTag

      public long getTag()
    • setTag

      public void setTag​(long v)
    • setTitleTextAttributes

      public void setTitleTextAttributes​(NSAttributedStringAttributes attributes, UIControlState state)
      Since:
      Available in iOS 5.0 and later.
    • setTitleTextMarkupAttributes

      public void setTitleTextMarkupAttributes​(CMTextMarkupAttributes attributes, UIControlState state)
      Since:
      Available in iOS 5.0 and later.
    • setTitleCoreTextAttributes

      public void setTitleCoreTextAttributes​(CTAttributedStringAttributes attributes, UIControlState state)
      Since:
      Available in iOS 5.0 and later.
    • getTitleTextAttributes

      public NSAttributedStringAttributes getTitleTextAttributes​(UIControlState state)
      Since:
      Available in iOS 5.0 and later.
    • getTitleTextMarkupAttributes

      public CMTextMarkupAttributes getTitleTextMarkupAttributes​(UIControlState state)
      Since:
      Available in iOS 5.0 and later.
    • getTitleCoreTextAttributes

      public CTAttributedStringAttributes getTitleCoreTextAttributes​(UIControlState state)
      Since:
      Available in iOS 5.0 and later.
    • init

      protected long init​(NSCoder coder)
    • setTitleTextAttributesDictionary

      public void setTitleTextAttributesDictionary​(NSDictionary<NSString,​?> attributes, UIControlState state)
    • getTitleTextAttributesDictionary

      public NSDictionary<NSString,​?> getTitleTextAttributesDictionary​(UIControlState state)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding