Package apple.uikit

Class UIButtonConfiguration

    • Constructor Detail

      • UIButtonConfiguration

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIButtonConfiguration allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

        public boolean automaticallyUpdateForSelection()
        If the style should automatically update when the button is selected. Default varies by style. Disable to customize selection behavior.
      • background

        @NotNull
        public @NotNull UIBackgroundConfiguration background()
        A UIBackgroundConfiguration describing the button's background. UIKit provides a value by default with values appropriate for a UIButton.
      • baseBackgroundColor

        @Nullable
        public @Nullable UIColor baseBackgroundColor()
        The base color to use for background elements. This color may be modified before being passed to a transformer, and finally applied to specific elements. Setting nil will cede full control to the configuration to select a color appropriate to the style.
      • baseForegroundColor

        @Nullable
        public @Nullable UIColor baseForegroundColor()
        The base color to use for foreground elements. This color may be modified before being passed to a transformer, and finally applied to specific elements. Setting nil will cede full control to the configuration to select a color appropriate to the style.
      • borderedButtonConfiguration

        @NotNull
        public static @NotNull UIButtonConfiguration borderedButtonConfiguration()
      • borderedProminentButtonConfiguration

        @NotNull
        public static @NotNull UIButtonConfiguration borderedProminentButtonConfiguration()
      • borderedTintedButtonConfiguration

        @NotNull
        public static @NotNull UIButtonConfiguration borderedTintedButtonConfiguration()
      • borderlessButtonConfiguration

        @NotNull
        public static @NotNull UIButtonConfiguration borderlessButtonConfiguration()
      • buttonSize

        public long buttonSize()
        Determines the metrics and ideal size of the button. Clients may resize the button arbitrarily regardless of this value.
      • 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()
      • contentInsets

        public NSDirectionalEdgeInsets contentInsets()
        Insets from the bounds of the button to create the content region. Defaults styles provide insets based on the button size.
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • cornerStyle

        public long cornerStyle()
        The corner style controls how background.cornerRadius is interpreted by the button. Defaults to `Dynamic`.
      • debugDescription_static

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

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

        @NotNull
        public static @NotNull UIButtonConfiguration filledButtonConfiguration()
      • grayButtonConfiguration

        @NotNull
        public static @NotNull UIButtonConfiguration grayButtonConfiguration()
      • hash_static

        public static long hash_static()
      • image

        @Nullable
        public @Nullable UIImage image()
      • imagePadding

        public double imagePadding()
        When a button has both image and text content, this value is the padding between the image and the text.
      • imagePlacement

        public long imagePlacement()
        Defaults to Leading, only single edge values (top/leading/bottom/trailing) are supported.
      • 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)
      • macIdiomStyle

        public long macIdiomStyle()
        Button style to use when running under the Mac idiom.
      • plainButtonConfiguration

        @NotNull
        public static @NotNull UIButtonConfiguration plainButtonConfiguration()
      • preferredSymbolConfigurationForImage

        @Nullable
        public @Nullable UIImageSymbolConfiguration preferredSymbolConfigurationForImage()
      • resolveClassMethod

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

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

        public void setAttributedSubtitle​(@Nullable
                                          @Nullable NSAttributedString value)
      • setAttributedTitle

        public void setAttributedTitle​(@Nullable
                                       @Nullable NSAttributedString value)
      • setAutomaticallyUpdateForSelection

        public void setAutomaticallyUpdateForSelection​(boolean value)
        If the style should automatically update when the button is selected. Default varies by style. Disable to customize selection behavior.
      • setBackground

        public void setBackground​(@NotNull
                                  @NotNull UIBackgroundConfiguration value)
        A UIBackgroundConfiguration describing the button's background. UIKit provides a value by default with values appropriate for a UIButton.
      • setBaseBackgroundColor

        public void setBaseBackgroundColor​(@Nullable
                                           @Nullable UIColor value)
        The base color to use for background elements. This color may be modified before being passed to a transformer, and finally applied to specific elements. Setting nil will cede full control to the configuration to select a color appropriate to the style.
      • setBaseForegroundColor

        public void setBaseForegroundColor​(@Nullable
                                           @Nullable UIColor value)
        The base color to use for foreground elements. This color may be modified before being passed to a transformer, and finally applied to specific elements. Setting nil will cede full control to the configuration to select a color appropriate to the style.
      • setButtonSize

        public void setButtonSize​(long value)
        Determines the metrics and ideal size of the button. Clients may resize the button arbitrarily regardless of this value.
      • setContentInsets

        public void setContentInsets​(NSDirectionalEdgeInsets value)
        Insets from the bounds of the button to create the content region. Defaults styles provide insets based on the button size.
      • setCornerStyle

        public void setCornerStyle​(long value)
        The corner style controls how background.cornerRadius is interpreted by the button. Defaults to `Dynamic`.
      • setDefaultContentInsets

        public void setDefaultContentInsets()
        Restore the default content insets.
      • setImage

        public void setImage​(@Nullable
                             @Nullable UIImage value)
      • setImagePadding

        public void setImagePadding​(double value)
        When a button has both image and text content, this value is the padding between the image and the text.
      • setImagePlacement

        public void setImagePlacement​(long value)
        Defaults to Leading, only single edge values (top/leading/bottom/trailing) are supported.
      • setMacIdiomStyle

        public void setMacIdiomStyle​(long value)
        Button style to use when running under the Mac idiom.
      • setPreferredSymbolConfigurationForImage

        public void setPreferredSymbolConfigurationForImage​(@Nullable
                                                            @Nullable UIImageSymbolConfiguration value)
      • setShowsActivityIndicator

        public void setShowsActivityIndicator​(boolean value)
        Shows an activity indicator in place of an image. Its placement is controlled by the imagePlacement property.
      • setSubtitle

        public void setSubtitle​(@Nullable
                                @Nullable java.lang.String value)
      • setTitle

        public void setTitle​(@Nullable
                             @Nullable java.lang.String value)
      • setTitleAlignment

        public void setTitleAlignment​(long value)
        The alignment to use for relative layout between title & subtitle.
      • setTitlePadding

        public void setTitlePadding​(double value)
        When a button has both a title & subtitle, this value is the padding between those titles.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • showsActivityIndicator

        public boolean showsActivityIndicator()
        Shows an activity indicator in place of an image. Its placement is controlled by the imagePlacement property.
      • subtitle

        @Nullable
        public @Nullable java.lang.String subtitle()
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • tintedButtonConfiguration

        @NotNull
        public static @NotNull UIButtonConfiguration tintedButtonConfiguration()
      • title

        @Nullable
        public @Nullable java.lang.String title()
      • titleAlignment

        public long titleAlignment()
        The alignment to use for relative layout between title & subtitle.
      • titlePadding

        public double titlePadding()
        When a button has both a title & subtitle, this value is the padding between those titles.
      • updatedConfigurationForButton

        @NotNull
        public @NotNull UIButtonConfiguration updatedConfigurationForButton​(@NotNull
                                                                            @NotNull UIButton button)
        Returns a copy of the configuration updated based on the given button, by applying the configuration's default values for that button's state to any properties that have not been customized.
      • version_static

        public static long version_static()
      • indicator

        public long indicator()
        What kind of indicator should the button show. Default value is .automatic. API-Since: 16.0
      • setIndicator

        public void setIndicator​(long value)
        What kind of indicator should the button show. Default value is .automatic. API-Since: 16.0
      • setSubtitleLineBreakMode

        public void setSubtitleLineBreakMode​(long value)
        Default is WordWrapping. WordWrapping and CharWrapping both allow for multi-line text, other modes will restrict the subtitle to a single line of text.
      • setTitleLineBreakMode

        public void setTitleLineBreakMode​(long value)
        Default is WordWrapping. WordWrapping and CharWrapping both allow for multi-line text, other modes will restrict the title to a single line of text.
      • subtitleLineBreakMode

        public long subtitleLineBreakMode()
        Default is WordWrapping. WordWrapping and CharWrapping both allow for multi-line text, other modes will restrict the subtitle to a single line of text.
      • titleLineBreakMode

        public long titleLineBreakMode()
        Default is WordWrapping. WordWrapping and CharWrapping both allow for multi-line text, other modes will restrict the title to a single line of text.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.