public class UIButtonConfiguration extends NSObject implements NSCopying, NSSecureCoding
| Modifier and Type | Class and Description |
|---|---|
static interface |
UIButtonConfiguration.Block_activityIndicatorColorTransformer_ret |
static interface |
UIButtonConfiguration.Block_imageColorTransformer_ret |
static interface |
UIButtonConfiguration.Block_setActivityIndicatorColorTransformer |
static interface |
UIButtonConfiguration.Block_setImageColorTransformer |
static interface |
UIButtonConfiguration.Block_setSubtitleTextAttributesTransformer |
static interface |
UIButtonConfiguration.Block_setTitleTextAttributesTransformer |
static interface |
UIButtonConfiguration.Block_subtitleTextAttributesTransformer_ret |
static interface |
UIButtonConfiguration.Block_titleTextAttributesTransformer_ret |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UIButtonConfiguration(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
UIButtonConfiguration.Block_activityIndicatorColorTransformer_ret |
activityIndicatorColorTransformer() |
static UIButtonConfiguration |
alloc() |
static UIButtonConfiguration |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
NSAttributedString |
attributedSubtitle() |
NSAttributedString |
attributedTitle() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
boolean |
automaticallyUpdateForSelection()
If the style should automatically update when the button is selected.
|
UIBackgroundConfiguration |
background()
A UIBackgroundConfiguration describing the button's background.
|
UIColor |
baseBackgroundColor()
The base color to use for background elements.
|
UIColor |
baseForegroundColor()
The base color to use for foreground elements.
|
static UIButtonConfiguration |
borderedButtonConfiguration() |
static UIButtonConfiguration |
borderedProminentButtonConfiguration() |
static UIButtonConfiguration |
borderedTintedButtonConfiguration() |
static UIButtonConfiguration |
borderlessButtonConfiguration() |
long |
buttonSize()
Determines the metrics and ideal size of the button.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
NSDirectionalEdgeInsets |
contentInsets()
Insets from the bounds of the button to create the content region.
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
long |
cornerStyle()
The corner style controls how background.cornerRadius is interpreted by the button.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
static UIButtonConfiguration |
filledButtonConfiguration() |
static UIButtonConfiguration |
grayButtonConfiguration() |
static long |
hash_static() |
UIImage |
image() |
UIButtonConfiguration.Block_imageColorTransformer_ret |
imageColorTransformer() |
double |
imagePadding()
When a button has both image and text content, this value is the padding between the image and the text.
|
long |
imagePlacement()
Defaults to Leading, only single edge values (top/leading/bottom/trailing) are supported.
|
UIButtonConfiguration |
init() |
UIButtonConfiguration |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
macIdiomStyle()
Button style to use when running under the Mac idiom.
|
static UIButtonConfiguration |
new_objc() |
static UIButtonConfiguration |
plainButtonConfiguration() |
UIImageSymbolConfiguration |
preferredSymbolConfigurationForImage() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setActivityIndicatorColorTransformer(UIButtonConfiguration.Block_setActivityIndicatorColorTransformer value) |
void |
setAttributedSubtitle(NSAttributedString value) |
void |
setAttributedTitle(NSAttributedString value) |
void |
setAutomaticallyUpdateForSelection(boolean value)
If the style should automatically update when the button is selected.
|
void |
setBackground(UIBackgroundConfiguration value)
A UIBackgroundConfiguration describing the button's background.
|
void |
setBaseBackgroundColor(UIColor value)
The base color to use for background elements.
|
void |
setBaseForegroundColor(UIColor value)
The base color to use for foreground elements.
|
void |
setButtonSize(long value)
Determines the metrics and ideal size of the button.
|
void |
setContentInsets(NSDirectionalEdgeInsets value)
Insets from the bounds of the button to create the content region.
|
void |
setCornerStyle(long value)
The corner style controls how background.cornerRadius is interpreted by the button.
|
void |
setDefaultContentInsets()
Restore the default content insets.
|
void |
setImage(UIImage value) |
void |
setImageColorTransformer(UIButtonConfiguration.Block_setImageColorTransformer value) |
void |
setImagePadding(double value)
When a button has both image and text content, this value is the padding between the image and the text.
|
void |
setImagePlacement(long value)
Defaults to Leading, only single edge values (top/leading/bottom/trailing) are supported.
|
void |
setMacIdiomStyle(long value)
Button style to use when running under the Mac idiom.
|
void |
setPreferredSymbolConfigurationForImage(UIImageSymbolConfiguration value) |
void |
setShowsActivityIndicator(boolean value)
Shows an activity indicator in place of an image.
|
void |
setSubtitle(java.lang.String value) |
void |
setSubtitleTextAttributesTransformer(UIButtonConfiguration.Block_setSubtitleTextAttributesTransformer value) |
void |
setTitle(java.lang.String value) |
void |
setTitleAlignment(long value)
The alignment to use for relative layout between title & subtitle.
|
void |
setTitlePadding(double value)
When a button has both a title & subtitle, this value is the padding between those titles.
|
void |
setTitleTextAttributesTransformer(UIButtonConfiguration.Block_setTitleTextAttributesTransformer value) |
static void |
setVersion_static(long aVersion) |
boolean |
showsActivityIndicator()
Shows an activity indicator in place of an image.
|
java.lang.String |
subtitle() |
UIButtonConfiguration.Block_subtitleTextAttributesTransformer_ret |
subtitleTextAttributesTransformer() |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
static UIButtonConfiguration |
tintedButtonConfiguration() |
java.lang.String |
title() |
long |
titleAlignment()
The alignment to use for relative layout between title & subtitle.
|
double |
titlePadding()
When a button has both a title & subtitle, this value is the padding between those titles.
|
UIButtonConfiguration.Block_titleTextAttributesTransformer_ret |
titleTextAttributesTransformer() |
UIButtonConfiguration |
updatedConfigurationForButton(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.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected UIButtonConfiguration(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public UIButtonConfiguration.Block_activityIndicatorColorTransformer_ret activityIndicatorColorTransformer()
public static UIButtonConfiguration alloc()
public static UIButtonConfiguration allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public NSAttributedString attributedSubtitle()
public NSAttributedString attributedTitle()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public boolean automaticallyUpdateForSelection()
public UIBackgroundConfiguration background()
public UIColor baseBackgroundColor()
public UIColor baseForegroundColor()
public static UIButtonConfiguration borderedButtonConfiguration()
public static UIButtonConfiguration borderedProminentButtonConfiguration()
public static UIButtonConfiguration borderedTintedButtonConfiguration()
public static UIButtonConfiguration borderlessButtonConfiguration()
public long buttonSize()
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public NSDirectionalEdgeInsets contentInsets()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic long cornerStyle()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic static UIButtonConfiguration filledButtonConfiguration()
public static UIButtonConfiguration grayButtonConfiguration()
public static long hash_static()
public UIImage image()
public UIButtonConfiguration.Block_imageColorTransformer_ret imageColorTransformer()
public double imagePadding()
public long imagePlacement()
public UIButtonConfiguration init()
public UIButtonConfiguration initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public long macIdiomStyle()
public static UIButtonConfiguration new_objc()
public static UIButtonConfiguration plainButtonConfiguration()
public UIImageSymbolConfiguration preferredSymbolConfigurationForImage()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setActivityIndicatorColorTransformer(UIButtonConfiguration.Block_setActivityIndicatorColorTransformer value)
public void setAttributedSubtitle(NSAttributedString value)
public void setAttributedTitle(NSAttributedString value)
public void setAutomaticallyUpdateForSelection(boolean value)
public void setBackground(UIBackgroundConfiguration value)
public void setBaseBackgroundColor(UIColor value)
public void setBaseForegroundColor(UIColor value)
public void setButtonSize(long value)
public void setContentInsets(NSDirectionalEdgeInsets value)
public void setCornerStyle(long value)
public void setDefaultContentInsets()
public void setImage(UIImage value)
public void setImageColorTransformer(UIButtonConfiguration.Block_setImageColorTransformer value)
public void setImagePadding(double value)
public void setImagePlacement(long value)
public void setMacIdiomStyle(long value)
public void setPreferredSymbolConfigurationForImage(UIImageSymbolConfiguration value)
public void setShowsActivityIndicator(boolean value)
public void setSubtitle(java.lang.String value)
public void setSubtitleTextAttributesTransformer(UIButtonConfiguration.Block_setSubtitleTextAttributesTransformer value)
public void setTitle(java.lang.String value)
public void setTitleAlignment(long value)
public void setTitlePadding(double value)
public void setTitleTextAttributesTransformer(UIButtonConfiguration.Block_setTitleTextAttributesTransformer value)
public static void setVersion_static(long aVersion)
public boolean showsActivityIndicator()
public java.lang.String subtitle()
public UIButtonConfiguration.Block_subtitleTextAttributesTransformer_ret subtitleTextAttributesTransformer()
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic static UIButtonConfiguration tintedButtonConfiguration()
public java.lang.String title()
public long titleAlignment()
public double titlePadding()
public UIButtonConfiguration.Block_titleTextAttributesTransformer_ret titleTextAttributesTransformer()
public UIButtonConfiguration updatedConfigurationForButton(UIButton button)
public static long version_static()