Package apple.uikit

Class UIBarItem

    • Constructor Detail

      • UIBarItem

        protected UIBarItem​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIBarItem allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appearance

        @NotNull
        public static @NotNull UIBarItem appearance()
      • appearanceForTraitCollection

        @NotNull
        public static @NotNull UIBarItem appearanceForTraitCollection​(@NotNull
                                                                      @NotNull UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UIBarItem appearanceForTraitCollectionWhenContainedIn​(@NotNull
                                                                                     @NotNull UITraitCollection trait,
                                                                                     @Nullable
                                                                                     @Nullable UIAppearanceContainer ContainerClass,
                                                                                     java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UIBarItem appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(@NotNull
                                                                                                       @NotNull UITraitCollection trait,
                                                                                                       @NotNull
                                                                                                       @NotNull NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UIBarItem appearanceWhenContainedIn​(@Nullable
                                                                   @Nullable UIAppearanceContainer ContainerClass,
                                                                   java.lang.Object... varargs)
        Deprecated.
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UIBarItem appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                                     @NotNull NSArray<?> containerTypes)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • new_objc

        public static UIBarItem new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • _appearance

        @NotNull
        public @NotNull UIBarItem _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public @NotNull UIBarItem _appearanceWhenContainedIn​(@Nullable
                                                             @Nullable UIAppearanceContainer ContainerClass,
                                                             java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down. API-Since: 5.0 Deprecated-Since: 9.0
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
      • image

        @Nullable
        public @Nullable UIImage image()
        default is nil
      • imageInsets

        public UIEdgeInsets imageInsets()
        default is UIEdgeInsetsZero
      • isEnabled

        public boolean isEnabled()
        default is YES
      • setEnabled

        public void setEnabled​(boolean value)
        default is YES
      • landscapeImagePhone

        @Nullable
        public @Nullable UIImage landscapeImagePhone()
        default is nil API-Since: 5.0
      • landscapeImagePhoneInsets

        public UIEdgeInsets landscapeImagePhoneInsets()
        default is UIEdgeInsetsZero. These insets apply only when the landscapeImagePhone property is set. API-Since: 5.0
      • setImage

        public void setImage​(@Nullable
                             @Nullable UIImage value)
        default is nil
      • setImageInsets

        public void setImageInsets​(UIEdgeInsets value)
        default is UIEdgeInsetsZero
      • setLandscapeImagePhone

        public void setLandscapeImagePhone​(@Nullable
                                           @Nullable UIImage value)
        default is nil API-Since: 5.0
      • setLandscapeImagePhoneInsets

        public void setLandscapeImagePhoneInsets​(UIEdgeInsets value)
        default is UIEdgeInsetsZero. These insets apply only when the landscapeImagePhone property is set. API-Since: 5.0
      • setTag

        public void setTag​(long value)
        default is 0
      • setTitle

        public void setTitle​(@Nullable
                             @Nullable java.lang.String value)
        default is nil
      • setTitleTextAttributesForState

        public void setTitleTextAttributesForState​(@Nullable
                                                   @Nullable NSDictionary<java.lang.String,​?> attributes,
                                                   long state)
        You may specify the font, text color, and shadow properties for the title in the text attributes dictionary, using the keys found in NSAttributedString.h. API-Since: 5.0
      • tag

        public long tag()
        default is 0
      • title

        @Nullable
        public @Nullable java.lang.String title()
        default is nil
      • titleTextAttributesForState

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> titleTextAttributesForState​(long state)
        API-Since: 5.0
      • largeContentSizeImage

        @Nullable
        public @Nullable UIImage largeContentSizeImage()
        Higher-resolution version of the standard image. Default is nil. Used for rendering assistive UI (e.g. for users with visual impairments who need large text). If not provided, the system may attempt to generate an image based on the standard image (for instance, by rasterizing matching PDF representations at a higher resolution). API-Since: 11.0
      • largeContentSizeImageInsets

        public UIEdgeInsets largeContentSizeImageInsets()
        default is UIEdgeInsetsZero. These insets apply only when the largeContentSizeImage property is set. API-Since: 11.0
      • setLargeContentSizeImage

        public void setLargeContentSizeImage​(@Nullable
                                             @Nullable UIImage value)
        Higher-resolution version of the standard image. Default is nil. Used for rendering assistive UI (e.g. for users with visual impairments who need large text). If not provided, the system may attempt to generate an image based on the standard image (for instance, by rasterizing matching PDF representations at a higher resolution). API-Since: 11.0
      • setLargeContentSizeImageInsets

        public void setLargeContentSizeImageInsets​(UIEdgeInsets value)
        default is UIEdgeInsetsZero. These insets apply only when the largeContentSizeImage property is set. API-Since: 11.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.