Package apple.uikit
Class UIControl
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIView
-
- apple.uikit.UIControl
-
- All Implemented Interfaces:
NSCoding,NSObject,CALayerDelegate,UIAccessibilityIdentification,UIActivityItemsConfigurationProviding,UIAppearance,UIAppearanceContainer,UIContextMenuInteractionDelegate,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIPopoverPresentationControllerSourceItem,UIResponderStandardEditActions,UITraitChangeObservable,UITraitEnvironment,UIUserActivityRestoring
- Direct Known Subclasses:
ASAuthorizationAppleIDButton,BCChatButton,CLLocationButton,PKIdentityButton,UIButton,UIColorWell,UIDatePicker,UIPageControl,UIPasteControl,UIRefreshControl,UISegmentedControl,UISlider,UIStepper,UISwitch,UITextField
public class UIControl extends UIView implements UIContextMenuInteractionDelegate
______________________________________________________ API-Since: 2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUIControl.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_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_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.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UITraitChangeObservable
UITraitChangeObservable.Block_registerForTraitChangesWithHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIControl(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull UIControl_appearance()To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class.@NotNull UIControl_appearanceForTraitCollection(@NotNull UITraitCollection trait)API-Since: 8.0@NotNull UIControl_appearanceForTraitCollectionWhenContainedIn(@NotNull UITraitCollection trait, @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.@NotNull UIControl_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull UITraitCollection trait, @NotNull NSArray<?> containerTypes)API-Since: 9.0@NotNull UIControl_appearanceWhenContainedIn(@Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.@NotNull UIControl_appearanceWhenContainedInInstancesOfClasses(@NotNull NSArray<?> containerTypes)API-Since: 9.0static booleanaccessInstanceVariablesDirectly()@Nullable NSArray<java.lang.String>actionsForTargetForControlEvent(@Nullable java.lang.Object target, long controlEvent)single event.voidaddActionForControlEvents(@NotNull UIAction action, long controlEvents)Adds the UIAction to a given event.static voidaddKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)voidaddTargetActionForControlEvents(@Nullable java.lang.Object target, @NotNull org.moe.natj.objc.SEL action, long controlEvents)add target/action for particular event.<T> voidaddTargetActionForControlEvents(ITargetAction<T> targetAction, long controlEvents)Abstract:longallControlEvents()list of all events that have at least one actionstatic UIControlalloc()static UIControlallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@NotNull NSSet<?>allTargets()set may include NSNull to indicate at least one nil targetstatic 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 voidanimateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion(double duration, double bounce, double velocity, double delay, long options, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_6 completion)static @NotNull UIControlappearance()static @NotNull UIControlappearanceForTraitCollection(@NotNull UITraitCollection trait)static @NotNull UIControlappearanceForTraitCollectionWhenContainedIn(@NotNull UITraitCollection trait, @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static @NotNull UIControlappearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull UITraitCollection trait, @NotNull NSArray<?> containerTypes)static @NotNull UIControlappearanceWhenContainedIn(@Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static @NotNull UIControlappearanceWhenContainedInInstancesOfClasses(@NotNull NSArray<?> containerTypes)static booleanareAnimationsEnabled()static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidbeginAnimationsContext(@Nullable java.lang.String animationID, @Nullable org.moe.natj.general.ptr.VoidPtr context)Deprecated.booleanbeginTrackingWithTouchWithEvent(@NotNull UITouch touch, @Nullable UIEvent event)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)voidcancelTrackingWithEvent(@Nullable UIEvent event)event may be nil if cancelled for non-event reasons, e.g.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(@NotNull java.lang.String identifier)static voidcommitAnimations()Deprecated.longcontentHorizontalAlignment()how to position content horizontally inside control.longcontentVerticalAlignment()how to position content vertically inside control.@Nullable UIContextMenuInteractioncontextMenuInteraction()Returns a UIContextMenuInteraction with this control set as its delegate.@Nullable UITargetedPreviewcontextMenuInteractionConfigurationDismissalPreviewForItemWithIdentifier(@NotNull UIContextMenuInteraction interaction, @NotNull UIContextMenuConfiguration configuration, @NotNull java.lang.Object identifier)Called when a context menu is dismissed.@Nullable UIContextMenuConfigurationcontextMenuInteractionConfigurationForMenuAtLocation(@NotNull UIContextMenuInteraction interaction, CGPoint location)Called when the interaction begins.@Nullable UITargetedPreviewcontextMenuInteractionConfigurationHighlightPreviewForItemWithIdentifier(@NotNull UIContextMenuInteraction interaction, @NotNull UIContextMenuConfiguration configuration, @NotNull java.lang.Object identifier)Called when a context menu interaction begins.@Nullable UITargetedPreviewcontextMenuInteractionPreviewForDismissingMenuWithConfiguration(@NotNull UIContextMenuInteraction interaction, @NotNull UIContextMenuConfiguration configuration)Called when the interaction is about to dismiss.@Nullable UITargetedPreviewcontextMenuInteractionPreviewForHighlightingMenuWithConfiguration(@NotNull UIContextMenuInteraction interaction, @NotNull UIContextMenuConfiguration configuration)Called when the interaction begins.voidcontextMenuInteractionWillDisplayMenuForConfigurationAnimator(@NotNull UIContextMenuInteraction interaction, @NotNull UIContextMenuConfiguration configuration, @Nullable UIContextMenuInteractionAnimating animator)Called when the interaction is about to display a menu.voidcontextMenuInteractionWillEndForConfigurationAnimator(@NotNull UIContextMenuInteraction interaction, @NotNull UIContextMenuConfiguration configuration, @Nullable UIContextMenuInteractionAnimating animator)Called when the interaction is about to end.voidcontextMenuInteractionWillPerformPreviewActionForMenuWithConfigurationAnimator(@NotNull UIContextMenuInteraction interaction, @NotNull UIContextMenuConfiguration configuration, @NotNull UIContextMenuInteractionCommitAnimating animator)Called when the interaction is about to "commit" in response to the user tapping the preview.booleancontinueTrackingWithTouchWithEvent(@NotNull UITouch touch, @Nullable UIEvent event)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()longeffectiveContentHorizontalAlignment()how to position content horizontally inside control, guaranteed to return 'left' or 'right' for any 'leading' or 'trailing'voidendTrackingWithTouchWithEvent(@Nullable UITouch touch, @Nullable UIEvent event)touch is sometimes nil if cancelTracking calls through to this.voidenumerateEventHandlers(@NotNull UIControl.Block_enumerateEventHandlers iterator)Iterate over the event handlers installed on this control at the time this method is called.static longhash_static()static doubleinheritedAnimationDuration()UIControlinit()UIControlinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERUIControlinitWithFrame(CGRect frame)UIControlinitWithFramePrimaryAction(CGRect frame, @Nullable UIAction primaryAction)Initializes the control and adds primaryAction for the UIControlEventPrimaryActionTriggered control event.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)booleanisContextMenuInteractionEnabled()Specifies if the context menu interaction is enabled.booleanisEnabled()default is YES.booleanisHighlighted()default is NO.booleanisSelected()default is NO may be used by some subclasses or by applicationstatic booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisSymbolAnimationEnabled()Whether or not symbol animations are enabled for this control.booleanisTouchInside()valid during tracking onlybooleanisTracking()static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static @NotNull org.moe.natj.objc.ClasslayerClass()CGPointmenuAttachmentPointForConfiguration(@NotNull UIContextMenuConfiguration configuration)Return a point in this control's coordinate space to which to attach the given configuration's menu.static voidmodifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)static UIControlnew_objc()static voidperformSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, @NotNull NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)static voidperformWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)voidremoveActionForControlEvents(@NotNull UIAction action, long controlEvents)Removes the action from the set of passed control events.voidremoveActionForIdentifierForControlEvents(@NotNull java.lang.String actionIdentifier, long controlEvents)Removes the action with the provided identifier from the set of passed control events.voidremoveTargetActionForControlEvents(@Nullable java.lang.Object target, @Nullable org.moe.natj.objc.SEL action, long controlEvents)remove the target/action for a set of events.voidremoveTargetActionForControlEvents(ITargetAction<?> targetAction, long controlEvents)Abstract:static booleanrequiresConstraintBasedLayout()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsendAction(@NotNull UIAction action)Like -sendAction:to:forEvent:, this method is called by -sendActionsForControlEvents:.voidsendActionsForControlEvents(long controlEvents)send all actions associated with the given control eventsvoidsendActionToForEvent(@NotNull org.moe.natj.objc.SEL action, @Nullable java.lang.Object target, @Nullable UIEvent event)Dispatch the target-action pair.static voidsetAnimationBeginsFromCurrentState(boolean fromCurrentState)Deprecated.static voidsetAnimationCurve(long curve)Deprecated.static voidsetAnimationDelay(double delay)Deprecated.static voidsetAnimationDelegate(@Nullable java.lang.Object delegate)Deprecated.static voidsetAnimationDidStopSelector(@Nullable org.moe.natj.objc.SEL selector)Deprecated.static voidsetAnimationDuration_static(double duration)Deprecated.static voidsetAnimationRepeatAutoreverses(boolean repeatAutoreverses)Deprecated.static voidsetAnimationRepeatCount_static(float repeatCount)Deprecated.static voidsetAnimationsEnabled(boolean enabled)static voidsetAnimationStartDate(@NotNull NSDate startDate)Deprecated.static voidsetAnimationTransitionForViewCache(long transition, @NotNull UIView view, boolean cache)Deprecated.static voidsetAnimationWillStartSelector(@Nullable org.moe.natj.objc.SEL selector)Deprecated.voidsetContentHorizontalAlignment(long value)how to position content horizontally inside control.voidsetContentVerticalAlignment(long value)how to position content vertically inside control.voidsetContextMenuInteractionEnabled(boolean value)Specifies if the context menu interaction is enabled.voidsetEnabled(boolean value)default is YES.voidsetHighlighted(boolean value)default is NO.voidsetSelected(boolean value)default is NO may be used by some subclasses or by applicationvoidsetShowsMenuAsPrimaryAction(boolean value)If the contextMenuInteraction is the primary action of the control, invoked on touch-down.voidsetSymbolAnimationEnabled(boolean value)Whether or not symbol animations are enabled for this control.voidsetToolTip(@Nullable java.lang.String value)Assigning a value to this property causes the tool tip to be displayed for the view.static voidsetVersion_static(long aVersion)booleanshowsMenuAsPrimaryAction()If the contextMenuInteraction is the primary action of the control, invoked on touch-down.longstate()could be more than one state (e.g.static org.moe.natj.objc.Classsuperclass_static()@Nullable java.lang.StringtoolTip()Assigning a value to this property causes the tool tip to be displayed for the view.@Nullable UIToolTipInteractiontoolTipInteraction()Returns the control's default UIToolTipInteraction.static voidtransitionFromViewToViewDurationOptionsCompletion(@NotNull UIView fromView, @NotNull UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)static voidtransitionWithViewDurationOptionsAnimationsCompletion(@NotNull 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 booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.uikit.UIView
accessibilityIdentifier, accessibilityIgnoresInvertColors, actionForLayerForKey, addConstraint, addConstraints, addGestureRecognizer, addInteraction, addLayoutGuide, addMotionEffect, addSubview, alignmentRectForFrame, alignmentRectInsets, alpha, anchorPoint, 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, encodeWithCoder, endEditing, exchangeSubviewAtIndexWithSubviewAtIndex, exerciseAmbiguityInLayout, firstBaselineAnchor, focusEffect, focusGroupIdentifier, focusGroupPriority, focusItemContainer, focusItemsInRect, frame, frameForAlignmentRect, frameInView, gestureRecognizers, gestureRecognizerShouldBegin, hasAmbiguousLayout, heightAnchor, hitTestWithEvent, hoverStyle, 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, registerForTraitChangesWithAction, registerForTraitChangesWithHandler, registerForTraitChangesWithTargetAction, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaInsetsDidChange, safeAreaLayoutGuide, scalesLargeContentImage, semanticContentAttribute, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnchorPoint, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriorityForAxis, setContentHuggingPriorityForAxis, setContentMode, setContentScaleFactor, setContentStretch, setDirectionalLayoutMargins, setExclusiveTouch, setFocusEffect, setFocusGroupIdentifier, setFocusGroupPriority, setFrame, setGestureRecognizers, setHidden, setHoverStyle, 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, setTintColor, setTransform, setTransform3D, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocusInContext, showsLargeContentViewer, sizeThatFits, sizeToFit, snapshotViewAfterScreenUpdates, subviews, superview, systemLayoutSizeFittingSize, systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, trailingAnchor, traitCollection, traitCollectionDidChange, traitOverrides, transform, transform3D, translatesAutoresizingMaskIntoConstraints, unregisterForTraitChanges, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, updateTraitsIfNeeded, viewForBaselineLayout, viewForFirstBaselineLayout, viewForLastBaselineLayout, viewPrintFormatter, viewWithTag, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, duplicate, editingInteractionConfiguration, export, find, findAndReplace, findNext, findPrevious, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, move, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, rename, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, useSelectionForFind, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
addKeyframeWithRelativeStartTimeRelativeDurationAnimations
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, @NotNull UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
-
alloc
public static UIControl alloc()
-
allocWithZone
public static UIControl allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animateKeyframesWithDurationDelayOptionsAnimationsCompletion
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationAnimations
public static void animateWithDurationAnimations(double duration, @NotNull UIView.Block_animateWithDurationAnimations animations)
-
animateWithDurationAnimationsCompletion
public static void animateWithDurationAnimationsCompletion(double duration, @NotNull UIView.Block_animateWithDurationAnimationsCompletion_1 animations, @Nullable UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
-
animateWithDurationDelayOptionsAnimationsCompletion
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, @NotNull UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, @Nullable UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
-
appearance
@NotNull public static @NotNull UIControl appearance()
-
appearanceForTraitCollection
@NotNull public static @NotNull UIControl appearanceForTraitCollection(@NotNull @NotNull UITraitCollection trait)
-
appearanceForTraitCollectionWhenContainedIn
@NotNull @Deprecated public static @NotNull UIControl appearanceForTraitCollectionWhenContainedIn(@NotNull @NotNull UITraitCollection trait, @Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceForTraitCollectionWhenContainedInInstancesOfClasses
@NotNull public static @NotNull UIControl appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull @NotNull UITraitCollection trait, @NotNull @NotNull NSArray<?> containerTypes)
-
appearanceWhenContainedIn
@NotNull @Deprecated public static @NotNull UIControl appearanceWhenContainedIn(@Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceWhenContainedInInstancesOfClasses
@NotNull public static @NotNull UIControl appearanceWhenContainedInInstancesOfClasses(@NotNull @NotNull NSArray<?> containerTypes)
-
areAnimationsEnabled
public static boolean areAnimationsEnabled()
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
beginAnimationsContext
@Deprecated public static void beginAnimationsContext(@Nullable @Nullable java.lang.String animationID, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr context)Deprecated.
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(@NotNull @NotNull java.lang.String identifier)
-
commitAnimations
@Deprecated public static void commitAnimations()
Deprecated.
-
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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
layerClass
@NotNull public static @NotNull org.moe.natj.objc.Class layerClass()
-
new_objc
public static UIControl new_objc()
-
performSystemAnimationOnViewsOptionsAnimationsCompletion
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, @NotNull @NotNull NSArray<? extends UIView> views, long options, @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
-
performWithoutAnimation
public static void performWithoutAnimation(@NotNull 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
@Deprecated public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
Deprecated.
-
setAnimationCurve
@Deprecated public static void setAnimationCurve(long curve)
Deprecated.
-
setAnimationDelay
@Deprecated public static void setAnimationDelay(double delay)
Deprecated.
-
setAnimationDelegate
@Deprecated public static void setAnimationDelegate(@Nullable @Nullable java.lang.Object delegate)Deprecated.
-
setAnimationDidStopSelector
@Deprecated public static void setAnimationDidStopSelector(@Nullable @Nullable org.moe.natj.objc.SEL selector)Deprecated.
-
setAnimationDuration_static
@Deprecated public static void setAnimationDuration_static(double duration)
Deprecated.
-
setAnimationRepeatAutoreverses
@Deprecated public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
Deprecated.
-
setAnimationRepeatCount_static
@Deprecated public static void setAnimationRepeatCount_static(float repeatCount)
Deprecated.
-
setAnimationStartDate
@Deprecated public static void setAnimationStartDate(@NotNull @NotNull NSDate startDate)Deprecated.
-
setAnimationTransitionForViewCache
@Deprecated public static void setAnimationTransitionForViewCache(long transition, @NotNull @NotNull UIView view, boolean cache)Deprecated.
-
setAnimationWillStartSelector
@Deprecated public static void setAnimationWillStartSelector(@Nullable @Nullable org.moe.natj.objc.SEL selector)Deprecated.
-
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(@NotNull @NotNull UIView fromView, @NotNull @NotNull UIView toView, double duration, long options, @Nullable UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
-
transitionWithViewDurationOptionsAnimationsCompletion
public static void transitionWithViewDurationOptionsAnimationsCompletion(@NotNull @NotNull UIView view, double duration, long options, @Nullable UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, @Nullable 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()
-
actionsForTargetForControlEvent
@Nullable public @Nullable NSArray<java.lang.String> actionsForTargetForControlEvent(@Nullable @Nullable java.lang.Object target, long controlEvent)
single event. returns NSArray of NSString selector names. returns nil if none
-
addTargetActionForControlEvents
public void addTargetActionForControlEvents(@Nullable @Nullable java.lang.Object target, @NotNull @NotNull org.moe.natj.objc.SEL action, long controlEvents)add target/action for particular event. you can call this multiple times and you can specify multiple target/actions for a particular event. passing in nil as the target goes up the responder chain. The action may optionally include the sender and the event in that order the action cannot be NULL. Note that the target is not retained.
-
allControlEvents
public long allControlEvents()
list of all events that have at least one action
-
allTargets
@NotNull public @NotNull NSSet<?> allTargets()
set may include NSNull to indicate at least one nil target
-
_appearance
@NotNull public @NotNull UIControl _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 classUIView
-
_appearanceForTraitCollection
@NotNull public @NotNull UIControl _appearanceForTraitCollection(@NotNull @NotNull UITraitCollection trait)
Description copied from interface:UIAppearanceAPI-Since: 8.0- Specified by:
_appearanceForTraitCollectionin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionin classUIView
-
_appearanceForTraitCollectionWhenContainedIn
@NotNull @Deprecated public @NotNull UIControl _appearanceForTraitCollectionWhenContainedIn(@NotNull @NotNull UITraitCollection trait, @Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.Description copied from interface:UIAppearanceAPI-Since: 8.0 Deprecated-Since: 9.0- Specified by:
_appearanceForTraitCollectionWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInin classUIView
-
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses
@NotNull public @NotNull UIControl _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull @NotNull UITraitCollection trait, @NotNull @NotNull NSArray<?> containerTypes)
Description copied from interface:UIAppearanceAPI-Since: 9.0- Specified by:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin classUIView
-
_appearanceWhenContainedIn
@NotNull @Deprecated public @NotNull UIControl _appearanceWhenContainedIn(@Nullable @Nullable 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. API-Since: 5.0 Deprecated-Since: 9.0- Specified by:
_appearanceWhenContainedInin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInin classUIView
-
_appearanceWhenContainedInInstancesOfClasses
@NotNull public @NotNull UIControl _appearanceWhenContainedInInstancesOfClasses(@NotNull @NotNull NSArray<?> containerTypes)
Description copied from interface:UIAppearanceAPI-Since: 9.0- Specified by:
_appearanceWhenContainedInInstancesOfClassesin interfaceUIAppearance- Overrides:
_appearanceWhenContainedInInstancesOfClassesin classUIView
-
beginTrackingWithTouchWithEvent
public boolean beginTrackingWithTouchWithEvent(@NotNull @NotNull UITouch touch, @Nullable @Nullable UIEvent event)
-
cancelTrackingWithEvent
public void cancelTrackingWithEvent(@Nullable @Nullable UIEvent event)event may be nil if cancelled for non-event reasons, e.g. removed from window
-
contentHorizontalAlignment
public long contentHorizontalAlignment()
how to position content horizontally inside control. default is center
-
contentVerticalAlignment
public long contentVerticalAlignment()
how to position content vertically inside control. default is center
-
continueTrackingWithTouchWithEvent
public boolean continueTrackingWithTouchWithEvent(@NotNull @NotNull UITouch touch, @Nullable @Nullable UIEvent event)
-
endTrackingWithTouchWithEvent
public void endTrackingWithTouchWithEvent(@Nullable @Nullable UITouch touch, @Nullable @Nullable UIEvent event)touch is sometimes nil if cancelTracking calls through to this.
-
initWithCoder
public UIControl initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIView
-
initWithFrame
public UIControl initWithFrame(CGRect frame)
- Overrides:
initWithFramein classUIView
-
isEnabled
public boolean isEnabled()
default is YES. if NO, ignores touch events and subclasses may draw differently
-
setEnabled
public void setEnabled(boolean value)
default is YES. if NO, ignores touch events and subclasses may draw differently
-
isHighlighted
public boolean isHighlighted()
default is NO. this gets set/cleared automatically when touch enters/exits during tracking and cleared on up
-
setHighlighted
public void setHighlighted(boolean value)
default is NO. this gets set/cleared automatically when touch enters/exits during tracking and cleared on up
-
isSelected
public boolean isSelected()
default is NO may be used by some subclasses or by application
-
setSelected
public void setSelected(boolean value)
default is NO may be used by some subclasses or by application
-
isTouchInside
public boolean isTouchInside()
valid during tracking only
-
isTracking
public boolean isTracking()
-
removeTargetActionForControlEvents
public void removeTargetActionForControlEvents(@Nullable @Nullable java.lang.Object target, @Nullable @Nullable org.moe.natj.objc.SEL action, long controlEvents)remove the target/action for a set of events. pass in NULL for the action to remove all actions for that target
-
sendActionToForEvent
public void sendActionToForEvent(@NotNull @NotNull org.moe.natj.objc.SEL action, @Nullable @Nullable java.lang.Object target, @Nullable @Nullable UIEvent event)Dispatch the target-action pair. This method is called repeatedly by -sendActionsForControlEvents: and is a point at which you can observe or override behavior.
-
sendActionsForControlEvents
public void sendActionsForControlEvents(long controlEvents)
send all actions associated with the given control events
-
setContentHorizontalAlignment
public void setContentHorizontalAlignment(long value)
how to position content horizontally inside control. default is center
-
setContentVerticalAlignment
public void setContentVerticalAlignment(long value)
how to position content vertically inside control. default is center
-
state
public long state()
could be more than one state (e.g. disabled|selected). synthesized from other flags.
-
addTargetActionForControlEvents
public <T> void addTargetActionForControlEvents(ITargetAction<T> targetAction, long controlEvents)
Abstract:
Adds a action for a particular event (or events) to an internal dispatch table.
- Parameters:
targetAction-The targetAction object—that is, the object to which the action message is sent.
controlEvents-A bitmask specifying the control events for which the action message is sent. See “Control Events” for bitmask constants.
- See Also:
ITargetAction
-
removeTargetActionForControlEvents
public void removeTargetActionForControlEvents(ITargetAction<?> targetAction, long controlEvents)
Abstract:
Removes a targetAction for a particular event (or events) from an internal dispatch table.
- Parameters:
targetAction-The targetAction object—that is, the object to which the action message is sent.
controlEvents-A bitmask specifying the control events associated with target and action. See “Control Events” for bitmask constants.
- See Also:
ITargetAction
-
effectiveContentHorizontalAlignment
public long effectiveContentHorizontalAlignment()
how to position content horizontally inside control, guaranteed to return 'left' or 'right' for any 'leading' or 'trailing'
-
modifyAnimationsWithRepeatCountAutoreversesAnimations
public static void modifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, @NotNull UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
-
addActionForControlEvents
public void addActionForControlEvents(@NotNull @NotNull UIAction action, long controlEvents)Adds the UIAction to a given event. UIActions are uniqued based on their identifier, and subsequent actions with the same identifier replace previously added actions. You may add multiple UIActions for corresponding controlEvents, and you may add the same action to multiple controlEvents. API-Since: 14.0
-
contextMenuInteraction
@Nullable public @Nullable UIContextMenuInteraction contextMenuInteraction()
Returns a UIContextMenuInteraction with this control set as its delegate. Before constructing the UIContextMenuInteraction, UIControl verifies 'self' is a viable delegate. See 'Implementing UIControl Menus' below for more details. API-Since: 14.0
-
contextMenuInteractionConfigurationForMenuAtLocation
@Nullable public @Nullable UIContextMenuConfiguration contextMenuInteractionConfigurationForMenuAtLocation(@NotNull @NotNull UIContextMenuInteraction interaction, CGPoint location)
Description copied from interface:UIContextMenuInteractionDelegateCalled when the interaction begins.- Specified by:
contextMenuInteractionConfigurationForMenuAtLocationin interfaceUIContextMenuInteractionDelegate- Parameters:
interaction- The UIContextMenuInteraction.location- The location of the interaction in its view.- Returns:
- A UIContextMenuConfiguration describing the menu to be presented. Return nil to prevent the interaction from beginning. Returning an empty configuration causes the interaction to begin then fail with a cancellation effect. You might use this to indicate to users that it's possible for a menu to be presented from this view, but that there are no actions to present at this particular time.
-
contextMenuInteractionPreviewForDismissingMenuWithConfiguration
@Nullable public @Nullable UITargetedPreview contextMenuInteractionPreviewForDismissingMenuWithConfiguration(@NotNull @NotNull UIContextMenuInteraction interaction, @NotNull @NotNull UIContextMenuConfiguration configuration)
Description copied from interface:UIContextMenuInteractionDelegateCalled when the interaction is about to dismiss. Return a UITargetedPreview describing the desired dismissal target. The interaction will animate the presented menu to the target. Use this to customize the dismissal animation.- Specified by:
contextMenuInteractionPreviewForDismissingMenuWithConfigurationin interfaceUIContextMenuInteractionDelegate- Parameters:
interaction- The UIContextMenuInteraction requesting a dismissal preview.configuration- The configuration of the menu displayed by this interaction.- Returns:
- Return a UITargetedPreview describing the desired dismissal target. Return nil to cause the menu to animate away without morphing into a specific view. API-Since: 13.0 Deprecated-Since: 16.0
-
contextMenuInteractionPreviewForHighlightingMenuWithConfiguration
@Nullable public @Nullable UITargetedPreview contextMenuInteractionPreviewForHighlightingMenuWithConfiguration(@NotNull @NotNull UIContextMenuInteraction interaction, @NotNull @NotNull UIContextMenuConfiguration configuration)
Description copied from interface:UIContextMenuInteractionDelegateCalled when the interaction begins. Return a UITargetedPreview describing the desired highlight preview.- Specified by:
contextMenuInteractionPreviewForHighlightingMenuWithConfigurationin interfaceUIContextMenuInteractionDelegate- Parameters:
interaction- The UIContextMenuInteraction requesting a highlighting preview.configuration- The configuration of the menu about to be displayed by this interaction. API-Since: 13.0 Deprecated-Since: 16.0
-
contextMenuInteractionWillDisplayMenuForConfigurationAnimator
public void contextMenuInteractionWillDisplayMenuForConfigurationAnimator(@NotNull @NotNull UIContextMenuInteraction interaction, @NotNull @NotNull UIContextMenuConfiguration configuration, @Nullable @Nullable UIContextMenuInteractionAnimating animator)Description copied from interface:UIContextMenuInteractionDelegateCalled when the interaction is about to display a menu.- Specified by:
contextMenuInteractionWillDisplayMenuForConfigurationAnimatorin interfaceUIContextMenuInteractionDelegate- Parameters:
interaction- The UIContextMenuInteraction.configuration- The configuration of the menu about to be displayed by this interaction.animator- Appearance animator. Add animations to run them alongside the appearance transition.
-
contextMenuInteractionWillEndForConfigurationAnimator
public void contextMenuInteractionWillEndForConfigurationAnimator(@NotNull @NotNull UIContextMenuInteraction interaction, @NotNull @NotNull UIContextMenuConfiguration configuration, @Nullable @Nullable UIContextMenuInteractionAnimating animator)Description copied from interface:UIContextMenuInteractionDelegateCalled when the interaction is about to end.- Specified by:
contextMenuInteractionWillEndForConfigurationAnimatorin interfaceUIContextMenuInteractionDelegate- Parameters:
interaction- The UIContextMenuInteraction.configuration- Ending configuration.animator- Disappearance animator. Add animations to run them alongside the disappearance transition.
-
contextMenuInteractionWillPerformPreviewActionForMenuWithConfigurationAnimator
public void contextMenuInteractionWillPerformPreviewActionForMenuWithConfigurationAnimator(@NotNull @NotNull UIContextMenuInteraction interaction, @NotNull @NotNull UIContextMenuConfiguration configuration, @NotNull @NotNull UIContextMenuInteractionCommitAnimating animator)Description copied from interface:UIContextMenuInteractionDelegateCalled when the interaction is about to "commit" in response to the user tapping the preview.- Specified by:
contextMenuInteractionWillPerformPreviewActionForMenuWithConfigurationAnimatorin interfaceUIContextMenuInteractionDelegate- Parameters:
interaction- The UIContextMenuInteraction.configuration- Configuration of the currently displayed menu.animator- Commit animator. Add animations to this object to run them alongside the commit transition.
-
enumerateEventHandlers
public void enumerateEventHandlers(@NotNull @NotNull UIControl.Block_enumerateEventHandlers iterator)Iterate over the event handlers installed on this control at the time this method is called. For each call, either actionHandler or action will be non-nil. controlEvents is always non-zero. Setting *stop to YES will terminate the enumeration early. It is legal to manipulate the control's event handlers within the block. API-Since: 14.0
-
initWithFramePrimaryAction
public UIControl initWithFramePrimaryAction(CGRect frame, @Nullable @Nullable UIAction primaryAction)
Initializes the control and adds primaryAction for the UIControlEventPrimaryActionTriggered control event. Subclasses of UIControl may alter or add behaviors around the usage of primaryAction, see subclass documentation of this initializer for additional information. API-Since: 14.0
-
isContextMenuInteractionEnabled
public boolean isContextMenuInteractionEnabled()
Specifies if the context menu interaction is enabled. NO by default. API-Since: 14.0
-
menuAttachmentPointForConfiguration
public CGPoint menuAttachmentPointForConfiguration(@NotNull @NotNull UIContextMenuConfiguration configuration)
Return a point in this control's coordinate space to which to attach the given configuration's menu. API-Since: 14.0
-
removeActionForControlEvents
public void removeActionForControlEvents(@NotNull @NotNull UIAction action, long controlEvents)Removes the action from the set of passed control events. API-Since: 14.0
-
removeActionForIdentifierForControlEvents
public void removeActionForIdentifierForControlEvents(@NotNull @NotNull java.lang.String actionIdentifier, long controlEvents)Removes the action with the provided identifier from the set of passed control events. API-Since: 14.0
-
sendAction
public void sendAction(@NotNull @NotNull UIAction action)Like -sendAction:to:forEvent:, this method is called by -sendActionsForControlEvents:. You may override this method to observe or modify behavior. If you override this method, you should call super precisely once to dispatch the action, or not call super to suppress sending that action. API-Since: 14.0
-
setContextMenuInteractionEnabled
public void setContextMenuInteractionEnabled(boolean value)
Specifies if the context menu interaction is enabled. NO by default. API-Since: 14.0
-
setShowsMenuAsPrimaryAction
public void setShowsMenuAsPrimaryAction(boolean value)
If the contextMenuInteraction is the primary action of the control, invoked on touch-down. NO by default. API-Since: 14.0
-
showsMenuAsPrimaryAction
public boolean showsMenuAsPrimaryAction()
If the contextMenuInteraction is the primary action of the control, invoked on touch-down. NO by default. API-Since: 14.0
-
setToolTip
public void setToolTip(@Nullable @Nullable java.lang.String value)Assigning a value to this property causes the tool tip to be displayed for the view. Setting the property to nil cancels the display of the tool tip for the view. API-Since: 15.0
-
toolTip
@Nullable public @Nullable java.lang.String toolTip()
Assigning a value to this property causes the tool tip to be displayed for the view. Setting the property to nil cancels the display of the tool tip for the view. API-Since: 15.0
-
toolTipInteraction
@Nullable public @Nullable UIToolTipInteraction toolTipInteraction()
Returns the control's default UIToolTipInteraction. API-Since: 15.0
-
contextMenuInteractionConfigurationDismissalPreviewForItemWithIdentifier
@Nullable public @Nullable UITargetedPreview contextMenuInteractionConfigurationDismissalPreviewForItemWithIdentifier(@NotNull @NotNull UIContextMenuInteraction interaction, @NotNull @NotNull UIContextMenuConfiguration configuration, @NotNull @NotNull java.lang.Object identifier)
Description copied from interface:UIContextMenuInteractionDelegateCalled when a context menu is dismissed. Return a UITargetedPreview corresponding to the item with the given identifier.- Specified by:
contextMenuInteractionConfigurationDismissalPreviewForItemWithIdentifierin interfaceUIContextMenuInteractionDelegate- Parameters:
interaction- The UIContextMenuInteraction.configuration- Configuration of the menu being dismissed.identifier- Identifier for the item whose preview is being requested. API-Since: 16.0
-
contextMenuInteractionConfigurationHighlightPreviewForItemWithIdentifier
@Nullable public @Nullable UITargetedPreview contextMenuInteractionConfigurationHighlightPreviewForItemWithIdentifier(@NotNull @NotNull UIContextMenuInteraction interaction, @NotNull @NotNull UIContextMenuConfiguration configuration, @NotNull @NotNull java.lang.Object identifier)
Description copied from interface:UIContextMenuInteractionDelegateCalled when a context menu interaction begins. Return a UITargetedPreview corresponding to the item with the given identifier.- Specified by:
contextMenuInteractionConfigurationHighlightPreviewForItemWithIdentifierin interfaceUIContextMenuInteractionDelegate- Parameters:
interaction- The UIContextMenuInteraction.configuration- Configuration of the menu that will be presented if the interaction proceeds.identifier- Identifier for the item whose preview is being requested. API-Since: 16.0
-
animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion
public static void animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion(double duration, double bounce, double velocity, double delay, long options, @NotNull UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5 animations, @Nullable UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_6 completion)
-
isSymbolAnimationEnabled
public boolean isSymbolAnimationEnabled()
Whether or not symbol animations are enabled for this control. The default value varies depending on the control. API-Since: 17.0
-
setSymbolAnimationEnabled
public void setSymbolAnimationEnabled(boolean value)
Whether or not symbol animations are enabled for this control. The default value varies depending on the control. API-Since: 17.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-