public class UIButton extends UIControl implements NSCoding, UISpringLoadedInteractionSupporting, UIAccessibilityContentSizeCategoryImageAdjusting
| Modifier and Type | Class and Description |
|---|---|
static interface |
UIButton.Block_configurationUpdateHandler_ret |
static interface |
UIButton.Block_pointerStyleProvider_ret |
static interface |
UIButton.Block_setConfigurationUpdateHandler |
static interface |
UIButton.Block_setPointerStyleProvider |
UIControl.Block_enumerateEventHandlersUIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4, UIView.Block_animateWithDurationAnimations, UIView.Block_animateWithDurationAnimationsCompletion_1, UIView.Block_animateWithDurationAnimationsCompletion_2, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4, UIView.Block_performWithoutAnimation, UIView.Block_transitionFromViewToViewDurationOptionsCompletion, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
UIButton(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
UIButton |
_appearance()
To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class.
|
UIButton |
_appearanceForTraitCollection(UITraitCollection trait) |
UIButton |
_appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait,
UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
UIButton |
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait,
NSArray<?> containerTypes) |
UIButton |
_appearanceWhenContainedIn(UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
UIButton |
_appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes) |
static boolean |
accessInstanceVariablesDirectly() |
static void |
addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime,
double frameDuration,
UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations) |
boolean |
adjustsImageSizeForAccessibilityContentSizeCategory()
When this is equal to YES, the receiver's intrinsic size will increase for users who prefer an accessibility content size category.
|
boolean |
adjustsImageWhenDisabled()
default is YES.
|
boolean |
adjustsImageWhenHighlighted()
default is YES.
|
static UIButton |
alloc() |
static UIButton |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static void |
animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion) |
static void |
animateWithDurationAnimations(double duration,
UIView.Block_animateWithDurationAnimations animations) |
static void |
animateWithDurationAnimationsCompletion(double duration,
UIView.Block_animateWithDurationAnimationsCompletion_1 animations,
UIView.Block_animateWithDurationAnimationsCompletion_2 completion) |
static void |
animateWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion) |
static void |
animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration,
double delay,
double dampingRatio,
double velocity,
long options,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion) |
static UIButton |
appearance() |
static UIButton |
appearanceForTraitCollection(UITraitCollection trait) |
static UIButton |
appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait,
UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
static UIButton |
appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait,
NSArray<?> containerTypes) |
static UIButton |
appearanceWhenContainedIn(UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
static UIButton |
appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes) |
static boolean |
areAnimationsEnabled() |
NSAttributedString |
attributedTitleForState(long state) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
boolean |
automaticallyUpdatesConfiguration()
When YES, the button will automatically call -updatedConfigurationForButton: on its `configuration ` when the button's state changes, and apply the updated configuration to the button.
|
UIImage |
backgroundImageForState(long state) |
CGRect |
backgroundRectForBounds(CGRect bounds)
These methods will not be called when using a configuration.
|
static void |
beginAnimationsContext(java.lang.String animationID,
org.moe.natj.general.ptr.VoidPtr context) |
long |
behavioralStyle()
The button's behavioral style.
|
long |
buttonType() |
static UIButton |
buttonWithConfigurationPrimaryAction(UIButtonConfiguration configuration,
UIAction primaryAction)
Construct a new UIButton.
|
static UIButton |
buttonWithType(long buttonType) |
static UIButton |
buttonWithTypePrimaryAction(long buttonType,
UIAction primaryAction)
Creates a button of the given type, registers primaryAction for the UIControlEventPrimaryActionTriggered control event, and if appropriate uses primaryAction's title & image as the button's title & image.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
boolean |
changesSelectionAsPrimaryAction()
Indicates if the button changes selection as its primary action.
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
static void |
commitAnimations() |
UIButtonConfiguration |
configuration()
Setting a non-nil value for `configuration` will opt into configuration-based behavior on UIButton, update the button in a platform specific manner, and enable/disable some API.
|
UIButton.Block_configurationUpdateHandler_ret |
configurationUpdateHandler()
Block-based equivalent to overriding -updateConfiguration in a subclass.
|
UIEdgeInsets |
contentEdgeInsets()
default is UIEdgeInsetsZero.
|
CGRect |
contentRectForBounds(CGRect bounds) |
NSAttributedString |
currentAttributedTitle()
normal/highlighted/selected/disabled.
|
UIImage |
currentBackgroundImage()
normal/highlighted/selected/disabled.
|
UIImage |
currentImage()
normal/highlighted/selected/disabled.
|
UIImageSymbolConfiguration |
currentPreferredSymbolConfiguration()
normal/highlighted/selected/disabled.
|
java.lang.String |
currentTitle()
normal/highlighted/selected/disabled.
|
UIColor |
currentTitleColor()
normal/highlighted/selected/disabled.
|
UIColor |
currentTitleShadowColor()
normal/highlighted/selected/disabled.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
UIFont |
font()
Deprecated.
|
static long |
hash_static() |
UIEdgeInsets |
imageEdgeInsets()
default is UIEdgeInsetsZero
|
UIImage |
imageForState(long state) |
CGRect |
imageRectForContentRect(CGRect contentRect) |
UIImageView |
imageView() |
static double |
inheritedAnimationDuration() |
UIButton |
init() |
UIButton |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
UIButton |
initWithFrame(CGRect frame) |
UIButton |
initWithFramePrimaryAction(CGRect frame,
UIAction primaryAction)
Initializes a custom button, registers primaryAction for the UIControlEventPrimaryActionTriggered control event, and uses primaryAction's title & image as the button's title & image.
|
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) |
boolean |
isHeld()
Returns true while the button is presenting a menu.
|
boolean |
isHovered()
If pointer effects are enabled for the button, this will return true when an effect is active.
|
boolean |
isPointerInteractionEnabled()
Enables this button's built-in pointer interaction.
|
boolean |
isSpringLoaded() |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static org.moe.natj.objc.Class |
layerClass() |
long |
lineBreakMode()
Deprecated.
|
UIMenu |
menu()
An optional menu for the button to display.
|
static void |
modifyAnimationsWithRepeatCountAutoreversesAnimations(double count,
boolean autoreverses,
UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations) |
static UIButton |
new_objc() |
static void |
performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation,
NSArray<? extends UIView> views,
long options,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion) |
static void |
performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation) |
UIButton.Block_pointerStyleProvider_ret |
pointerStyleProvider()
Called when the system pointer hovers over this button if its pointer interaction is enabled.
|
long |
preferredBehavioralStyle()
Request a style for the button.
|
UIImageSymbolConfiguration |
preferredSymbolConfigurationForImageInState(long state) |
static boolean |
requiresConstraintBasedLayout() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
boolean |
reversesTitleShadowWhenHighlighted()
default is NO.
|
long |
role()
default is UIButtonRoleNormal.
|
void |
setAdjustsImageSizeForAccessibilityContentSizeCategory(boolean value)
When this is equal to YES, the receiver's intrinsic size will increase for users who prefer an accessibility content size category.
|
void |
setAdjustsImageWhenDisabled(boolean value)
default is YES.
|
void |
setAdjustsImageWhenHighlighted(boolean value)
default is YES.
|
static void |
setAnimationBeginsFromCurrentState(boolean fromCurrentState) |
static void |
setAnimationCurve(long curve) |
static void |
setAnimationDelay(double delay) |
static void |
setAnimationDelegate(java.lang.Object delegate) |
static void |
setAnimationDidStopSelector(org.moe.natj.objc.SEL selector) |
static void |
setAnimationDuration_static(double duration) |
static void |
setAnimationRepeatAutoreverses(boolean repeatAutoreverses) |
static void |
setAnimationRepeatCount_static(float repeatCount) |
static void |
setAnimationsEnabled(boolean enabled) |
static void |
setAnimationStartDate(NSDate startDate) |
static void |
setAnimationTransitionForViewCache(long transition,
UIView view,
boolean cache) |
static void |
setAnimationWillStartSelector(org.moe.natj.objc.SEL selector) |
void |
setAttributedTitleForState(NSAttributedString title,
long state)
default is nil.
|
void |
setAutomaticallyUpdatesConfiguration(boolean value)
When YES, the button will automatically call -updatedConfigurationForButton: on its `configuration ` when the button's state changes, and apply the updated configuration to the button.
|
void |
setBackgroundImageForState(UIImage image,
long state)
default is nil
|
void |
setChangesSelectionAsPrimaryAction(boolean value)
Indicates if the button changes selection as its primary action.
|
void |
setConfiguration(UIButtonConfiguration value)
Setting a non-nil value for `configuration` will opt into configuration-based behavior on UIButton, update the button in a platform specific manner, and enable/disable some API.
|
void |
setConfigurationUpdateHandler(UIButton.Block_setConfigurationUpdateHandler value)
Block-based equivalent to overriding -updateConfiguration in a subclass.
|
void |
setContentEdgeInsets(UIEdgeInsets value)
default is UIEdgeInsetsZero.
|
void |
setFont(UIFont value)
Deprecated.
|
void |
setImageEdgeInsets(UIEdgeInsets value)
default is UIEdgeInsetsZero
|
void |
setImageForState(UIImage image,
long state)
default is nil.
|
void |
setLineBreakMode(long value)
Deprecated.
|
void |
setMenu(UIMenu value)
An optional menu for the button to display.
|
void |
setNeedsUpdateConfiguration()
Requests the view update its configuration for its current state.
|
void |
setPointerInteractionEnabled(boolean value)
Enables this button's built-in pointer interaction.
|
void |
setPointerStyleProvider(UIButton.Block_setPointerStyleProvider value)
Called when the system pointer hovers over this button if its pointer interaction is enabled.
|
void |
setPreferredBehavioralStyle(long value)
Request a style for the button.
|
void |
setPreferredSymbolConfigurationForImageInState(UIImageSymbolConfiguration configuration,
long state) |
void |
setReversesTitleShadowWhenHighlighted(boolean value)
default is NO.
|
void |
setRole(long value)
default is UIButtonRoleNormal.
|
void |
setShowsTouchWhenHighlighted(boolean value)
These properties are ignored when a configuration is set and have no replacement.
|
void |
setSpringLoaded(boolean value) |
void |
setTintColor(UIColor value)
The tintColor is inherited through the superview hierarchy.
|
void |
setTitleColorForState(UIColor color,
long state)
default is nil.
|
void |
setTitleEdgeInsets(UIEdgeInsets value)
default is UIEdgeInsetsZero
|
void |
setTitleForState(java.lang.String title,
long state)
default is nil.
|
void |
setTitleShadowColorForState(UIColor color,
long state)
default is nil.
|
void |
setTitleShadowOffset(CGSize value)
Deprecated.
|
static void |
setVersion_static(long aVersion) |
boolean |
showsTouchWhenHighlighted()
These properties are ignored when a configuration is set and have no replacement.
|
UILabel |
subtitleLabel()
The label used to display the subtitle, when present.
|
static org.moe.natj.objc.Class |
superclass_static() |
static UIButton |
systemButtonWithImageTargetAction(UIImage image,
java.lang.Object target,
org.moe.natj.objc.SEL action) |
static UIButton |
systemButtonWithPrimaryAction(UIAction primaryAction)
Creates a system button, registers primaryAction for the UIControlEventPrimaryActionTriggered control event, and uses primaryAction's title & image as the button's title & image.
|
UIColor |
tintColor()
The tintColor is inherited through the superview hierarchy.
|
UIColor |
titleColorForState(long state) |
UIEdgeInsets |
titleEdgeInsets()
default is UIEdgeInsetsZero
|
java.lang.String |
titleForState(long state)
these getters only take a single state value
|
UILabel |
titleLabel()
return title and image views.
|
CGRect |
titleRectForContentRect(CGRect contentRect) |
UIColor |
titleShadowColorForState(long state) |
CGSize |
titleShadowOffset()
Deprecated.
|
static void |
transitionFromViewToViewDurationOptionsCompletion(UIView fromView,
UIView toView,
double duration,
long options,
UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion) |
static void |
transitionWithViewDurationOptionsAnimationsCompletion(UIView view,
double duration,
long options,
UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations,
UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion) |
void |
updateConfiguration()
Subclasses should override this method and update the button's `configuration`.
|
static long |
userInterfaceLayoutDirectionForSemanticContentAttribute(long attribute) |
static long |
userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute,
long layoutDirection) |
static long |
version_static() |
actionsForTargetForControlEvent, addActionForControlEvents, addTargetActionForControlEvents, addTargetActionForControlEvents, allControlEvents, allTargets, beginTrackingWithTouchWithEvent, cancelTrackingWithEvent, contentHorizontalAlignment, contentVerticalAlignment, contextMenuInteraction, contextMenuInteractionConfigurationForMenuAtLocation, contextMenuInteractionPreviewForDismissingMenuWithConfiguration, contextMenuInteractionPreviewForHighlightingMenuWithConfiguration, contextMenuInteractionWillDisplayMenuForConfigurationAnimator, contextMenuInteractionWillEndForConfigurationAnimator, contextMenuInteractionWillPerformPreviewActionForMenuWithConfigurationAnimator, continueTrackingWithTouchWithEvent, effectiveContentHorizontalAlignment, endTrackingWithTouchWithEvent, enumerateEventHandlers, isContextMenuInteractionEnabled, isEnabled, isHighlighted, isSelected, isTouchInside, isTracking, menuAttachmentPointForConfiguration, removeActionForControlEvents, removeActionForIdentifierForControlEvents, removeTargetActionForControlEvents, removeTargetActionForControlEvents, sendAction, sendActionsForControlEvents, sendActionToForEvent, setContentHorizontalAlignment, setContentVerticalAlignment, setContextMenuInteractionEnabled, setEnabled, setHighlighted, setSelected, setShowsMenuAsPrimaryAction, setToolTip, showsMenuAsPrimaryAction, state, toolTip, toolTipInteractionaccessibilityIdentifier, accessibilityIgnoresInvertColors, actionForLayerForKey, addConstraint, addConstraints, addGestureRecognizer, addInteraction, addLayoutGuide, addMotionEffect, addSubview, alignmentRectForFrame, alignmentRectInsets, alpha, appliedContentSizeCategoryLimitsDescription, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, canBecomeFocused, center, centerXAnchor, centerYAnchor, clearsContextBeforeDrawing, clipsToBounds, collisionBoundingPath, collisionBoundsType, constraints, constraintsAffectingLayoutForAxis, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, contentScaleFactor, contentStretch, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, coordinateSpace, decodeRestorableStateWithCoder, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocusInContextWithAnimationCoordinator, directionalLayoutMargins, displayLayer, drawLayerInContext, drawRect, drawRectForViewPrintFormatter, drawViewHierarchyInRectAfterScreenUpdates, effectiveUserInterfaceLayoutDirection, encodeRestorableStateWithCoder, endEditing, exchangeSubviewAtIndexWithSubviewAtIndex, exerciseAmbiguityInLayout, firstBaselineAnchor, focusEffect, focusGroupIdentifier, focusGroupPriority, focusItemContainer, focusItemsInRect, frame, frameForAlignmentRect, gestureRecognizers, gestureRecognizerShouldBegin, hasAmbiguousLayout, heightAnchor, hitTestWithEvent, insertSubviewAboveSubview, insertSubviewAtIndex, insertSubviewBelowSubview, insetsLayoutMarginsFromSafeArea, interactions, intrinsicContentSize, invalidateIntrinsicContentSize, isDescendantOfView, isExclusiveTouch, isFocused, isHidden, isMultipleTouchEnabled, isOpaque, isTransparentFocusItem, isUserInteractionEnabled, keyboardLayoutGuide, largeContentImage, largeContentImageInsets, largeContentTitle, lastBaselineAnchor, layer, layerWillDraw, layoutGuides, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSublayersOfLayer, layoutSubviews, leadingAnchor, leftAnchor, maskView, maximumContentSizeCategory, minimumContentSizeCategory, motionEffects, needsUpdateConstraints, overrideUserInterfaceStyle, parentFocusEnvironment, pointInsideWithEvent, preferredFocusedView, preferredFocusEnvironments, preservesSuperviewLayoutMargins, readableContentGuide, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaInsetsDidChange, safeAreaLayoutGuide, scalesLargeContentImage, semanticContentAttribute, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriorityForAxis, setContentHuggingPriorityForAxis, setContentMode, setContentScaleFactor, setContentStretch, setDirectionalLayoutMargins, setExclusiveTouch, setFocusEffect, setFocusGroupIdentifier, setFocusGroupPriority, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLargeContentImage, setLargeContentImageInsets, setLargeContentTitle, setLayoutMargins, setMaskView, setMaximumContentSizeCategory, setMinimumContentSizeCategory, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplayInRect, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setScalesLargeContentImage, setSemanticContentAttribute, setShowsLargeContentViewer, setTag, setTintAdjustmentMode, setTransform, setTransform3D, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocusInContext, showsLargeContentViewer, sizeThatFits, sizeToFit, snapshotViewAfterScreenUpdates, subviews, superview, systemLayoutSizeFittingSize, systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority, tag, tintAdjustmentMode, tintColorDidChange, topAnchor, trailingAnchor, traitCollection, traitCollectionDidChange, transform, transform3D, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, viewForBaselineLayout, viewForFirstBaselineLayout, viewForLastBaselineLayout, viewPrintFormatter, viewWithTag, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, windowactivityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, 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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime,
double frameDuration,
UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
public static UIButton alloc()
public static UIButton allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
public static void animateWithDurationAnimations(double duration,
UIView.Block_animateWithDurationAnimations animations)
public static void animateWithDurationAnimationsCompletion(double duration,
UIView.Block_animateWithDurationAnimationsCompletion_1 animations,
UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration,
double delay,
double dampingRatio,
double velocity,
long options,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
public static UIButton appearance()
public static UIButton appearanceForTraitCollection(UITraitCollection trait)
@Deprecated public static UIButton appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
public static UIButton appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
@Deprecated public static UIButton appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
public static UIButton appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
public static boolean areAnimationsEnabled()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void beginAnimationsContext(java.lang.String animationID,
org.moe.natj.general.ptr.VoidPtr context)
public static UIButton buttonWithType(long buttonType)
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 static void clearTextInputContextIdentifier(java.lang.String identifier)
public static void commitAnimations()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static double inheritedAnimationDuration()
public 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 static org.moe.natj.objc.Class layerClass()
public static UIButton new_objc()
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation,
NSArray<? extends UIView> views,
long options,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
public static void performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)
public static boolean requiresConstraintBasedLayout()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
public static void setAnimationCurve(long curve)
public static void setAnimationDelay(double delay)
public static void setAnimationDelegate(java.lang.Object delegate)
public static void setAnimationDidStopSelector(org.moe.natj.objc.SEL selector)
public static void setAnimationDuration_static(double duration)
public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
public static void setAnimationRepeatCount_static(float repeatCount)
public static void setAnimationStartDate(NSDate startDate)
public static void setAnimationTransitionForViewCache(long transition,
UIView view,
boolean cache)
public static void setAnimationWillStartSelector(org.moe.natj.objc.SEL selector)
public static void setAnimationsEnabled(boolean enabled)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static void transitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
public static void transitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)
public static long userInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)
public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute,
long layoutDirection)
public static long version_static()
public boolean adjustsImageWhenDisabled()
public boolean adjustsImageWhenHighlighted()
public UIButton _appearance()
UIAppearanceNote 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.
_appearance in interface UIAppearance_appearance in class UIControlpublic UIButton _appearanceForTraitCollection(UITraitCollection trait)
_appearanceForTraitCollection in interface UIAppearance_appearanceForTraitCollection in class UIControl@Deprecated public UIButton _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
_appearanceForTraitCollectionWhenContainedIn in interface UIAppearance_appearanceForTraitCollectionWhenContainedIn in class UIControlpublic UIButton _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses in interface UIAppearance_appearanceForTraitCollectionWhenContainedInInstancesOfClasses in class UIControl@Deprecated public UIButton _appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
UIAppearance[[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.
_appearanceWhenContainedIn in interface UIAppearance_appearanceWhenContainedIn in class UIControlpublic UIButton _appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
_appearanceWhenContainedInInstancesOfClasses in interface UIAppearance_appearanceWhenContainedInInstancesOfClasses in class UIControlpublic NSAttributedString attributedTitleForState(long state)
public UIImage backgroundImageForState(long state)
public CGRect backgroundRectForBounds(CGRect bounds)
public long buttonType()
public UIEdgeInsets contentEdgeInsets()
public NSAttributedString currentAttributedTitle()
public UIImage currentBackgroundImage()
public UIImage currentImage()
public java.lang.String currentTitle()
public UIColor currentTitleColor()
public UIColor currentTitleShadowColor()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingencodeWithCoder in class UIView@Deprecated public UIFont font()
public UIEdgeInsets imageEdgeInsets()
public UIImage imageForState(long state)
public UIImageView imageView()
public UIButton initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class UIControlpublic UIButton initWithFrame(CGRect frame)
initWithFrame in class UIControl@Deprecated public long lineBreakMode()
public boolean reversesTitleShadowWhenHighlighted()
public void setAdjustsImageWhenDisabled(boolean value)
public void setAdjustsImageWhenHighlighted(boolean value)
public void setAttributedTitleForState(NSAttributedString title, long state)
public void setBackgroundImageForState(UIImage image, long state)
public void setContentEdgeInsets(UIEdgeInsets value)
@Deprecated public void setFont(UIFont value)
public void setImageForState(UIImage image, long state)
public void setImageEdgeInsets(UIEdgeInsets value)
@Deprecated public void setLineBreakMode(long value)
public void setReversesTitleShadowWhenHighlighted(boolean value)
public void setShowsTouchWhenHighlighted(boolean value)
public void setTintColor(UIColor value)
setTintColor in class UIViewpublic void setTitleForState(java.lang.String title,
long state)
public void setTitleColorForState(UIColor color, long state)
public void setTitleEdgeInsets(UIEdgeInsets value)
public void setTitleShadowColorForState(UIColor color, long state)
@Deprecated public void setTitleShadowOffset(CGSize value)
public boolean showsTouchWhenHighlighted()
public UIColor tintColor()
public UIColor titleColorForState(long state)
public UIEdgeInsets titleEdgeInsets()
public java.lang.String titleForState(long state)
public UILabel titleLabel()
public UIColor titleShadowColorForState(long state)
@Deprecated public CGSize titleShadowOffset()
public boolean adjustsImageSizeForAccessibilityContentSizeCategory()
UIAccessibilityContentSizeCategoryImageAdjustingadjustsImageSizeForAccessibilityContentSizeCategory in interface UIAccessibilityContentSizeCategoryImageAdjustingpublic boolean isSpringLoaded()
isSpringLoaded in interface UISpringLoadedInteractionSupportingpublic void setAdjustsImageSizeForAccessibilityContentSizeCategory(boolean value)
UIAccessibilityContentSizeCategoryImageAdjustingsetAdjustsImageSizeForAccessibilityContentSizeCategory in interface UIAccessibilityContentSizeCategoryImageAdjustingpublic void setSpringLoaded(boolean value)
setSpringLoaded in interface UISpringLoadedInteractionSupportingpublic UIImageSymbolConfiguration currentPreferredSymbolConfiguration()
public static void modifyAnimationsWithRepeatCountAutoreversesAnimations(double count,
boolean autoreverses,
UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
public UIImageSymbolConfiguration preferredSymbolConfigurationForImageInState(long state)
public void setPreferredSymbolConfigurationForImageInState(UIImageSymbolConfiguration configuration, long state)
public static UIButton systemButtonWithImageTargetAction(UIImage image, java.lang.Object target, org.moe.natj.objc.SEL action)
public boolean isPointerInteractionEnabled()
public UIButton.Block_pointerStyleProvider_ret pointerStyleProvider()
public void setPointerInteractionEnabled(boolean value)
public void setPointerStyleProvider(UIButton.Block_setPointerStyleProvider value)
public static UIButton buttonWithTypePrimaryAction(long buttonType, UIAction primaryAction)
public UIButton initWithFramePrimaryAction(CGRect frame, UIAction primaryAction)
initWithFramePrimaryAction in class UIControlpublic UIMenu menu()
public long role()
public void setMenu(UIMenu value)
public void setRole(long value)
public static UIButton systemButtonWithPrimaryAction(UIAction primaryAction)
public boolean automaticallyUpdatesConfiguration()
public long behavioralStyle()
public static UIButton buttonWithConfigurationPrimaryAction(UIButtonConfiguration configuration, UIAction primaryAction)
public boolean changesSelectionAsPrimaryAction()
public UIButtonConfiguration configuration()
public UIButton.Block_configurationUpdateHandler_ret configurationUpdateHandler()
public boolean isHeld()
public boolean isHovered()
public long preferredBehavioralStyle()
public void setAutomaticallyUpdatesConfiguration(boolean value)
public void setChangesSelectionAsPrimaryAction(boolean value)
public void setConfiguration(UIButtonConfiguration value)
public void setConfigurationUpdateHandler(UIButton.Block_setConfigurationUpdateHandler value)
public void setNeedsUpdateConfiguration()
public void setPreferredBehavioralStyle(long value)
public UILabel subtitleLabel()
public void updateConfiguration()