Package apple.uikit
Class UIButton
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIView
-
- apple.uikit.UIControl
-
- apple.uikit.UIButton
-
- All Implemented Interfaces:
NSCoding,NSObject,CALayerDelegate,UIAccessibilityContentSizeCategoryImageAdjusting,UIAccessibilityIdentification,UIAppearance,UIAppearanceContainer,UIContextMenuInteractionDelegate,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UISpringLoadedInteractionSupporting,UITraitEnvironment,UIUserActivityRestoring
- Direct Known Subclasses:
INUIAddVoiceShortcutButton,PKAddPassButton,PKPaymentButton
public class UIButton extends UIControl implements NSCoding, UISpringLoadedInteractionSupporting, UIAccessibilityContentSizeCategoryImageAdjusting
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUIButton.Block_pointerStyleProvider_retstatic interfaceUIButton.Block_setPointerStyleProvider-
Nested classes/interfaces inherited from class apple.uikit.UIControl
UIControl.Block_enumerateEventHandlers
-
Nested classes/interfaces inherited from class apple.uikit.UIView
UIView.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_4
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIButton(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object_appearance()To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class.java.lang.Object_appearanceForTraitCollection(UITraitCollection trait)java.lang.Object_appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.java.lang.Object_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)java.lang.Object_appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.java.lang.Object_appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)static booleanaccessInstanceVariablesDirectly()static voidaddKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)booleanadjustsImageSizeForAccessibilityContentSizeCategory()When this is equal to YES, the receiver's intrinsic size will increase for users who prefer an accessibility content size category.booleanadjustsImageWhenDisabled()default is YES. if YES, image is drawn lighter when disabledbooleanadjustsImageWhenHighlighted()default is YES. if YES, image is drawn darker when highlighted(pressed)static UIButtonalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static voidanimateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationAnimations(double duration, UIView.Block_animateWithDurationAnimations animations)static voidanimateWithDurationAnimationsCompletion(double duration, UIView.Block_animateWithDurationAnimationsCompletion_1 animations, UIView.Block_animateWithDurationAnimationsCompletion_2 completion)static voidanimateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)static java.lang.Objectappearance()static java.lang.ObjectappearanceForTraitCollection(UITraitCollection trait)static java.lang.ObjectappearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static java.lang.ObjectappearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)static java.lang.ObjectappearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static java.lang.ObjectappearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)static booleanareAnimationsEnabled()NSAttributedStringattributedTitleForState(long state)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)UIImagebackgroundImageForState(long state)CGRectbackgroundRectForBounds(CGRect bounds)these return the rectangle for the background (assumes bounds), the content (image + title) and for the image and title separately. the content rect is calculated based on the title and image size and padding and then adjusted based on the control content alignment. there are no draw methods since the contents are rendered in separate subviews (UIImageView, UILabel)static voidbeginAnimationsContext(java.lang.String animationID, org.moe.natj.general.ptr.VoidPtr context)longbuttonType()static UIButtonbuttonWithType(long buttonType)static UIButtonbuttonWithTypePrimaryAction(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 voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(java.lang.String identifier)static voidcommitAnimations()UIEdgeInsetscontentEdgeInsets()default is UIEdgeInsetsZero.CGRectcontentRectForBounds(CGRect bounds)NSAttributedStringcurrentAttributedTitle()normal/highlighted/selected/disabled. can return nilUIImagecurrentBackgroundImage()normal/highlighted/selected/disabled. can return nilUIImagecurrentImage()normal/highlighted/selected/disabled. can return nilUIImageSymbolConfigurationcurrentPreferredSymbolConfiguration()normal/highlighted/selected/disabled. can return niljava.lang.StringcurrentTitle()normal/highlighted/selected/disabled. can return nilUIColorcurrentTitleColor()normal/highlighted/selected/disabled. always returns non-nil. default is white(1,1)UIColorcurrentTitleShadowColor()normal/highlighted/selected/disabled.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidencodeWithCoder(NSCoder coder)UIFontfont()Deprecated.static longhash_static()UIEdgeInsetsimageEdgeInsets()default is UIEdgeInsetsZeroUIImageimageForState(long state)CGRectimageRectForContentRect(CGRect contentRect)UIImageViewimageView()static doubleinheritedAnimationDuration()UIButtoninit()UIButtoninitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERUIButtoninitWithFrame(CGRect frame)UIButtoninitWithFramePrimaryAction(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_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisPointerInteractionEnabled()Enables this button's built-in pointer interaction.booleanisSpringLoaded()static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static org.moe.natj.objc.ClasslayerClass()longlineBreakMode()Deprecated.UIMenumenu()An optional menu for the button to display.static voidmodifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)static java.lang.Objectnew_objc()static voidperformSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)static voidperformWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)UIButton.Block_pointerStyleProvider_retpointerStyleProvider()Called when the system pointer hovers over this button if its pointer interaction is enabled.UIImageSymbolConfigurationpreferredSymbolConfigurationForImageInState(long state)static booleanrequiresConstraintBasedLayout()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)booleanreversesTitleShadowWhenHighlighted()default is NO. if YES, shadow reverses to shift between engrave and emboss appearancelongrole()default is UIButtonRoleNormal.voidsetAdjustsImageSizeForAccessibilityContentSizeCategory(boolean value)When this is equal to YES, the receiver's intrinsic size will increase for users who prefer an accessibility content size category.voidsetAdjustsImageWhenDisabled(boolean value)default is YES. if YES, image is drawn lighter when disabledvoidsetAdjustsImageWhenHighlighted(boolean value)default is YES. if YES, image is drawn darker when highlighted(pressed)static voidsetAnimationBeginsFromCurrentState(boolean fromCurrentState)static voidsetAnimationCurve(long curve)static voidsetAnimationDelay(double delay)static voidsetAnimationDelegate(java.lang.Object delegate)static voidsetAnimationDidStopSelector(org.moe.natj.objc.SEL selector)static voidsetAnimationDuration_static(double duration)static voidsetAnimationRepeatAutoreverses(boolean repeatAutoreverses)static voidsetAnimationRepeatCount_static(float repeatCount)static voidsetAnimationsEnabled(boolean enabled)static voidsetAnimationStartDate(NSDate startDate)static voidsetAnimationTransitionForViewCache(long transition, UIView view, boolean cache)static voidsetAnimationWillStartSelector(org.moe.natj.objc.SEL selector)voidsetAttributedTitleForState(NSAttributedString title, long state)default is nil. title is assumed to be single linevoidsetBackgroundImageForState(UIImage image, long state)default is nilvoidsetContentEdgeInsets(UIEdgeInsets value)default is UIEdgeInsetsZero.voidsetFont(UIFont value)Deprecated.voidsetImageEdgeInsets(UIEdgeInsets value)default is UIEdgeInsetsZerovoidsetImageForState(UIImage image, long state)default is nil. should be same size if different for different statesvoidsetLineBreakMode(long value)Deprecated.voidsetMenu(UIMenu value)An optional menu for the button to display.voidsetPointerInteractionEnabled(boolean value)Enables this button's built-in pointer interaction.voidsetPointerStyleProvider(UIButton.Block_setPointerStyleProvider value)Called when the system pointer hovers over this button if its pointer interaction is enabled.voidsetPreferredSymbolConfigurationForImageInState(UIImageSymbolConfiguration configuration, long state)voidsetReversesTitleShadowWhenHighlighted(boolean value)default is NO. if YES, shadow reverses to shift between engrave and emboss appearancevoidsetRole(long value)default is UIButtonRoleNormal.voidsetShowsTouchWhenHighlighted(boolean value)default is NO. if YES, show a simple feedback (currently a glow) while highlightedvoidsetSpringLoaded(boolean value)voidsetTintColor(UIColor value)The tintColor is inherited through the superview hierarchy.voidsetTitleColorForState(UIColor color, long state)default is nil. use opaque whitevoidsetTitleEdgeInsets(UIEdgeInsets value)default is UIEdgeInsetsZerovoidsetTitleForState(java.lang.String title, long state)default is nil. title is assumed to be single linevoidsetTitleShadowColorForState(UIColor color, long state)default is nil. use 50% blackvoidsetTitleShadowOffset(CGSize value)Deprecated.static voidsetVersion_static(long aVersion)booleanshowsTouchWhenHighlighted()default is NO. if YES, show a simple feedback (currently a glow) while highlightedstatic org.moe.natj.objc.Classsuperclass_static()static java.lang.ObjectsystemButtonWithImageTargetAction(UIImage image, java.lang.Object target, org.moe.natj.objc.SEL action)static java.lang.ObjectsystemButtonWithPrimaryAction(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.UIColortintColor()The tintColor is inherited through the superview hierarchy.UIColortitleColorForState(long state)UIEdgeInsetstitleEdgeInsets()default is UIEdgeInsetsZerojava.lang.StringtitleForState(long state)these getters only take a single state valueUILabeltitleLabel()return title and image views. will always create them if necessary. always returns nil for system buttonsCGRecttitleRectForContentRect(CGRect contentRect)UIColortitleShadowColorForState(long state)CGSizetitleShadowOffset()Deprecated.static voidtransitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)static voidtransitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)static longuserInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)static longuserInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)static longversion_static()-
Methods inherited from class apple.uikit.UIControl
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, showsMenuAsPrimaryAction, state
-
Methods inherited from class apple.uikit.UIView
accessibilityIdentifier, accessibilityIgnoresInvertColors, actionForLayerForKey, addConstraint, addConstraints, addGestureRecognizer, addInteraction, addLayoutGuide, addMotionEffect, addSubview, alignmentRectForFrame, alignmentRectInsets, alpha, 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, focusGroupIdentifier, focusItemContainer, focusItemsInRect, frame, frameForAlignmentRect, gestureRecognizers, gestureRecognizerShouldBegin, hasAmbiguousLayout, heightAnchor, hitTestWithEvent, insertSubviewAboveSubview, insertSubviewAtIndex, insertSubviewBelowSubview, insetsLayoutMarginsFromSafeArea, interactions, intrinsicContentSize, invalidateIntrinsicContentSize, isDescendantOfView, isExclusiveTouch, isFocused, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, largeContentImage, largeContentImageInsets, largeContentTitle, lastBaselineAnchor, layer, layerWillDraw, layoutGuides, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSublayersOfLayer, layoutSubviews, leadingAnchor, leftAnchor, maskView, 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, setFocusGroupIdentifier, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLargeContentImage, setLargeContentImageInsets, setLargeContentTitle, setLayoutMargins, setMaskView, 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, window
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
addKeyframeWithRelativeStartTimeRelativeDurationAnimations
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
-
alloc
public static UIButton alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animateKeyframesWithDurationDelayOptionsAnimationsCompletion
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationAnimations
public static void animateWithDurationAnimations(double duration, UIView.Block_animateWithDurationAnimations animations)
-
animateWithDurationAnimationsCompletion
public static void animateWithDurationAnimationsCompletion(double duration, UIView.Block_animateWithDurationAnimationsCompletion_1 animations, UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
-
animateWithDurationDelayOptionsAnimationsCompletion
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
-
appearance
public static java.lang.Object appearance()
-
appearanceForTraitCollection
public static java.lang.Object appearanceForTraitCollection(UITraitCollection trait)
-
appearanceForTraitCollectionWhenContainedIn
@Deprecated public static java.lang.Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceForTraitCollectionWhenContainedInInstancesOfClasses
public static java.lang.Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
-
appearanceWhenContainedIn
@Deprecated public static java.lang.Object appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceWhenContainedInInstancesOfClasses
public static java.lang.Object appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
-
areAnimationsEnabled
public static boolean areAnimationsEnabled()
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
beginAnimationsContext
public static void beginAnimationsContext(java.lang.String animationID, org.moe.natj.general.ptr.VoidPtr context)
-
buttonWithType
public static UIButton buttonWithType(long buttonType)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(java.lang.String identifier)
-
commitAnimations
public static void commitAnimations()
-
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()
-
inheritedAnimationDuration
public static double inheritedAnimationDuration()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
layerClass
public static org.moe.natj.objc.Class layerClass()
-
new_objc
public static java.lang.Object new_objc()
-
performSystemAnimationOnViewsOptionsAnimationsCompletion
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
-
performWithoutAnimation
public static void performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)
-
requiresConstraintBasedLayout
public static boolean requiresConstraintBasedLayout()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setAnimationBeginsFromCurrentState
public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
-
setAnimationCurve
public static void setAnimationCurve(long curve)
-
setAnimationDelay
public static void setAnimationDelay(double delay)
-
setAnimationDelegate
public static void setAnimationDelegate(java.lang.Object delegate)
-
setAnimationDidStopSelector
public static void setAnimationDidStopSelector(org.moe.natj.objc.SEL selector)
-
setAnimationDuration_static
public static void setAnimationDuration_static(double duration)
-
setAnimationRepeatAutoreverses
public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
-
setAnimationRepeatCount_static
public static void setAnimationRepeatCount_static(float repeatCount)
-
setAnimationStartDate
public static void setAnimationStartDate(NSDate startDate)
-
setAnimationTransitionForViewCache
public static void setAnimationTransitionForViewCache(long transition, UIView view, boolean cache)
-
setAnimationWillStartSelector
public static void setAnimationWillStartSelector(org.moe.natj.objc.SEL selector)
-
setAnimationsEnabled
public static void setAnimationsEnabled(boolean enabled)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
transitionFromViewToViewDurationOptionsCompletion
public static void transitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
-
transitionWithViewDurationOptionsAnimationsCompletion
public static void transitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)
-
userInterfaceLayoutDirectionForSemanticContentAttribute
public static long userInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)
-
userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection
public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)
-
version_static
public static long version_static()
-
adjustsImageWhenDisabled
public boolean adjustsImageWhenDisabled()
default is YES. if YES, image is drawn lighter when disabled
-
adjustsImageWhenHighlighted
public boolean adjustsImageWhenHighlighted()
default is YES. if YES, image is drawn darker when highlighted(pressed)
-
_appearance
public java.lang.Object _appearance()
Description copied from interface:UIAppearanceTo 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:
_appearancein interfaceUIAppearance- Overrides:
_appearancein classUIControl
-
_appearanceForTraitCollection
public java.lang.Object _appearanceForTraitCollection(UITraitCollection trait)
- Specified by:
_appearanceForTraitCollectionin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionin classUIControl
-
_appearanceForTraitCollectionWhenContainedIn
@Deprecated public java.lang.Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.- Specified by:
_appearanceForTraitCollectionWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInin classUIControl
-
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses
public java.lang.Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
- Specified by:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin classUIControl
-
_appearanceWhenContainedIn
@Deprecated public java.lang.Object _appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.Description copied from interface:UIAppearanceTo 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.- Specified by:
_appearanceWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInin classUIControl
-
_appearanceWhenContainedInInstancesOfClasses
public java.lang.Object _appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
- Specified by:
_appearanceWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInInstancesOfClassesin classUIControl
-
attributedTitleForState
public NSAttributedString attributedTitleForState(long state)
-
backgroundImageForState
public UIImage backgroundImageForState(long state)
-
backgroundRectForBounds
public CGRect backgroundRectForBounds(CGRect bounds)
these return the rectangle for the background (assumes bounds), the content (image + title) and for the image and title separately. the content rect is calculated based on the title and image size and padding and then adjusted based on the control content alignment. there are no draw methods since the contents are rendered in separate subviews (UIImageView, UILabel)
-
buttonType
public long buttonType()
-
contentEdgeInsets
public UIEdgeInsets contentEdgeInsets()
default is UIEdgeInsetsZero. On tvOS 10 or later, default is nonzero except for custom buttons.
-
currentAttributedTitle
public NSAttributedString currentAttributedTitle()
normal/highlighted/selected/disabled. can return nil
-
currentBackgroundImage
public UIImage currentBackgroundImage()
normal/highlighted/selected/disabled. can return nil
-
currentImage
public UIImage currentImage()
normal/highlighted/selected/disabled. can return nil
-
currentTitle
public java.lang.String currentTitle()
normal/highlighted/selected/disabled. can return nil
-
currentTitleColor
public UIColor currentTitleColor()
normal/highlighted/selected/disabled. always returns non-nil. default is white(1,1)
-
currentTitleShadowColor
public UIColor currentTitleShadowColor()
normal/highlighted/selected/disabled.
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding- Overrides:
encodeWithCoderin classUIView
-
font
@Deprecated public UIFont font()
Deprecated.
-
imageEdgeInsets
public UIEdgeInsets imageEdgeInsets()
default is UIEdgeInsetsZero
-
imageForState
public UIImage imageForState(long state)
-
imageView
public UIImageView imageView()
-
initWithCoder
public UIButton initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIControl
-
initWithFrame
public UIButton initWithFrame(CGRect frame)
- Overrides:
initWithFramein classUIControl
-
lineBreakMode
@Deprecated public long lineBreakMode()
Deprecated.
-
reversesTitleShadowWhenHighlighted
public boolean reversesTitleShadowWhenHighlighted()
default is NO. if YES, shadow reverses to shift between engrave and emboss appearance
-
setAdjustsImageWhenDisabled
public void setAdjustsImageWhenDisabled(boolean value)
default is YES. if YES, image is drawn lighter when disabled
-
setAdjustsImageWhenHighlighted
public void setAdjustsImageWhenHighlighted(boolean value)
default is YES. if YES, image is drawn darker when highlighted(pressed)
-
setAttributedTitleForState
public void setAttributedTitleForState(NSAttributedString title, long state)
default is nil. title is assumed to be single line
-
setBackgroundImageForState
public void setBackgroundImageForState(UIImage image, long state)
default is nil
-
setContentEdgeInsets
public void setContentEdgeInsets(UIEdgeInsets value)
default is UIEdgeInsetsZero. On tvOS 10 or later, default is nonzero except for custom buttons.
-
setFont
@Deprecated public void setFont(UIFont value)
Deprecated.
-
setImageForState
public void setImageForState(UIImage image, long state)
default is nil. should be same size if different for different states
-
setImageEdgeInsets
public void setImageEdgeInsets(UIEdgeInsets value)
default is UIEdgeInsetsZero
-
setLineBreakMode
@Deprecated public void setLineBreakMode(long value)
Deprecated.
-
setReversesTitleShadowWhenHighlighted
public void setReversesTitleShadowWhenHighlighted(boolean value)
default is NO. if YES, shadow reverses to shift between engrave and emboss appearance
-
setShowsTouchWhenHighlighted
public void setShowsTouchWhenHighlighted(boolean value)
default is NO. if YES, show a simple feedback (currently a glow) while highlighted
-
setTintColor
public void setTintColor(UIColor value)
The tintColor is inherited through the superview hierarchy. See UIView for more information.- Overrides:
setTintColorin classUIView
-
setTitleForState
public void setTitleForState(java.lang.String title, long state)default is nil. title is assumed to be single line
-
setTitleColorForState
public void setTitleColorForState(UIColor color, long state)
default is nil. use opaque white
-
setTitleEdgeInsets
public void setTitleEdgeInsets(UIEdgeInsets value)
default is UIEdgeInsetsZero
-
setTitleShadowColorForState
public void setTitleShadowColorForState(UIColor color, long state)
default is nil. use 50% black
-
setTitleShadowOffset
@Deprecated public void setTitleShadowOffset(CGSize value)
Deprecated.
-
showsTouchWhenHighlighted
public boolean showsTouchWhenHighlighted()
default is NO. if YES, show a simple feedback (currently a glow) while highlighted
-
tintColor
public UIColor tintColor()
The tintColor is inherited through the superview hierarchy. See UIView for more information.
-
titleColorForState
public UIColor titleColorForState(long state)
-
titleEdgeInsets
public UIEdgeInsets titleEdgeInsets()
default is UIEdgeInsetsZero
-
titleForState
public java.lang.String titleForState(long state)
these getters only take a single state value
-
titleLabel
public UILabel titleLabel()
return title and image views. will always create them if necessary. always returns nil for system buttons
-
titleShadowColorForState
public UIColor titleShadowColorForState(long state)
-
titleShadowOffset
@Deprecated public CGSize titleShadowOffset()
Deprecated.
-
adjustsImageSizeForAccessibilityContentSizeCategory
public boolean adjustsImageSizeForAccessibilityContentSizeCategory()
Description copied from interface:UIAccessibilityContentSizeCategoryImageAdjustingWhen this is equal to YES, the receiver's intrinsic size will increase for users who prefer an accessibility content size category.- Specified by:
adjustsImageSizeForAccessibilityContentSizeCategoryin interfaceUIAccessibilityContentSizeCategoryImageAdjusting
-
isSpringLoaded
public boolean isSpringLoaded()
- Specified by:
isSpringLoadedin interfaceUISpringLoadedInteractionSupporting
-
setAdjustsImageSizeForAccessibilityContentSizeCategory
public void setAdjustsImageSizeForAccessibilityContentSizeCategory(boolean value)
Description copied from interface:UIAccessibilityContentSizeCategoryImageAdjustingWhen this is equal to YES, the receiver's intrinsic size will increase for users who prefer an accessibility content size category.- Specified by:
setAdjustsImageSizeForAccessibilityContentSizeCategoryin interfaceUIAccessibilityContentSizeCategoryImageAdjusting
-
setSpringLoaded
public void setSpringLoaded(boolean value)
- Specified by:
setSpringLoadedin interfaceUISpringLoadedInteractionSupporting
-
currentPreferredSymbolConfiguration
public UIImageSymbolConfiguration currentPreferredSymbolConfiguration()
normal/highlighted/selected/disabled. can return nil
-
modifyAnimationsWithRepeatCountAutoreversesAnimations
public static void modifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
-
preferredSymbolConfigurationForImageInState
public UIImageSymbolConfiguration preferredSymbolConfigurationForImageInState(long state)
-
setPreferredSymbolConfigurationForImageInState
public void setPreferredSymbolConfigurationForImageInState(UIImageSymbolConfiguration configuration, long state)
-
systemButtonWithImageTargetAction
public static java.lang.Object systemButtonWithImageTargetAction(UIImage image, java.lang.Object target, org.moe.natj.objc.SEL action)
-
isPointerInteractionEnabled
public boolean isPointerInteractionEnabled()
Enables this button's built-in pointer interaction.
-
pointerStyleProvider
public UIButton.Block_pointerStyleProvider_ret pointerStyleProvider()
Called when the system pointer hovers over this button if its pointer interaction is enabled. The system calls this block with a proposed UIPointerEffect and UIPointerShape. You may use them to construct a customized version of the system provided style or return an entirely custom one.
-
setPointerInteractionEnabled
public void setPointerInteractionEnabled(boolean value)
Enables this button's built-in pointer interaction.
-
setPointerStyleProvider
public void setPointerStyleProvider(UIButton.Block_setPointerStyleProvider value)
Called when the system pointer hovers over this button if its pointer interaction is enabled. The system calls this block with a proposed UIPointerEffect and UIPointerShape. You may use them to construct a customized version of the system provided style or return an entirely custom one.
-
buttonWithTypePrimaryAction
public 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.
-
initWithFramePrimaryAction
public 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.- Overrides:
initWithFramePrimaryActionin classUIControl
-
menu
public UIMenu menu()
An optional menu for the button to display. The button will automatically enable or disable its contextMenuInteraction when a non-nil or nil menu is set. Defaults to nil.
-
role
public long role()
default is UIButtonRoleNormal.
-
setMenu
public void setMenu(UIMenu value)
An optional menu for the button to display. The button will automatically enable or disable its contextMenuInteraction when a non-nil or nil menu is set. Defaults to nil.
-
setRole
public void setRole(long value)
default is UIButtonRoleNormal.
-
systemButtonWithPrimaryAction
public static java.lang.Object 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.
-
-