Package org.robovm.apple.uikit
Class UIControl
- All Implemented Interfaces:
CALayerDelegate,NSCoding,NSObjectProtocol,UIAccessibilityIdentification,UIActivityItemsConfigurationProviding,UIAppearanceContainer,UIContextMenuInteractionDelegate,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UITraitEnvironment,UIUserActivityRestoring,ObjCProtocol
- Direct Known Subclasses:
ASAuthorizationAppleIDButton,BCChatButton,CLLocationButton,UIButton,UIColorWell,UIDatePicker,UIPageControl,UIRefreshControl,UISegmentedControl,UISlider,UIStepper,UISwitch,UITextField
public class UIControl extends UIView implements UIContextMenuInteractionDelegate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceUIControl.Listenerstatic interfaceUIControl.OnEditingChangedListenerstatic interfaceUIControl.OnEditingDidBeginListenerstatic interfaceUIControl.OnEditingDidEndListenerstatic interfaceUIControl.OnEditingDidEndOnExitListenerstatic interfaceUIControl.OnPrimaryActionTriggeredListenerstatic interfaceUIControl.OnTouchCancelListenerstatic interfaceUIControl.OnTouchDownListenerstatic interfaceUIControl.OnTouchDownRepeatListenerstatic interfaceUIControl.OnTouchDragEnterListenerstatic interfaceUIControl.OnTouchDragExitListenerstatic interfaceUIControl.OnTouchDragInsideListenerstatic interfaceUIControl.OnTouchDragOutsideListenerstatic interfaceUIControl.OnTouchUpInsideListenerstatic interfaceUIControl.OnTouchUpOutsideListenerstatic interfaceUIControl.OnValueChangedListenerstatic classUIControl.UIControlPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIView
UIView.UIViewPtrNested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description UIControl()protectedUIControl(long handle)Deprecated.UIControl(CGRect frame)UIControl(CGRect frame, UIAction primaryAction)UIControl(NSCoder coder)protectedUIControl(NSObject.Handle h, long handle)protectedUIControl(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.uikit.UIView
addConstraint, addConstraints, addGestureRecognizer, addInteraction, addKeyframe, addLayoutGuide, addMotionEffect, addSubview, animate, animate, animate, animate, animateKeyframes, areAnimationsEnabled, autoresizesSubviews, beginAnimations, bringSubviewToFront, canBecomeFocused, clearsContextBeforeDrawing, clipsToBounds, commitAnimations, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, decodeRestorableState, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocus, displayLayer, draw, draw, drawLayer, drawViewHierarchy, encode, encodeRestorableState, endEditing, exchangeSubview, exerciseAmbiguityInLayout, focusItemsInRect, gestureRecognizerShouldBegin, getAccessibilityIdentifier, getAction, getAlignmentRectForFrame, getAlignmentRectInsets, getAlpha, getAppliedContentSizeCategoryLimitsDescription, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusEffect, getFocusGroupIdentifier, getFocusGroupPriority, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getKeyboardLayoutGuide, getLargeContentImage, getLargeContentImageInsets, getLargeContentTitle, getLastBaselineAnchor, getLayer, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMaximumContentSizeCategory, getMinimumContentSizeCategory, getMotionEffects, getOverrideUserInterfaceStyle, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTintColor, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getTransform3D, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, isScalesLargeContentImage, isTransparentFocusItem, isUserInteractionEnabled, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, modifyAnimations, needsUpdateConstraints, NoIntrinsicMetric, performSystemAnimation, performWithoutAnimation, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, requiresConstraintBasedLayout, safeAreaInsetsDidChange, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDelegate, setAnimationDidStopSelector, setAnimationDurationInSeconds, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAnimationTransition, setAnimationWillStartSelector, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setContentScaleFactor, setDirectionalLayoutMargins, setExclusiveTouch, setFocusEffect, setFocusGroupIdentifier, setFocusGroupPriority, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLargeContentImage, setLargeContentImageInsets, setLargeContentTitle, setLayoutMargins, setMaskView, setMaximumContentSizeCategory, setMinimumContentSizeCategory, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setScalesLargeContentImage, setSemanticContentAttribute, setShowsLargeContentViewer, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTransform3D, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocus, showsLargeContentViewer, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubviewMethods inherited from class org.robovm.apple.uikit.UIResponder
becomeFirstResponder, buildMenu, canBecomeFirstResponder, canPasteItemProviders, canPerformAction, canResignFirstResponder, captureTextFromCamera, clearTextInputContextIdentifier, copy, cut, decreaseSize, delete, getActionTarget, getActivityItemsConfiguration, getEditingInteractionConfiguration, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getPasteConfiguration, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, increaseSize, isFirstResponder, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBegan, motionCancelled, motionEnded, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteItemProviders, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, print, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, toggleBoldface, toggleItalics, toggleUnderline, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateTextAttributes, updateUserActivityState, validateCommandMethods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
UIControl
public UIControl() -
UIControl
Deprecated. -
UIControl
-
UIControl
-
UIControl
-
UIControl
-
UIControl
- Since:
- Available in iOS 14.0 and later.
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean v) -
isSelected
public boolean isSelected() -
setSelected
public void setSelected(boolean v) -
isHighlighted
public boolean isHighlighted() -
setHighlighted
public void setHighlighted(boolean v) -
getContentVerticalAlignment
-
setContentVerticalAlignment
-
getContentHorizontalAlignment
-
setContentHorizontalAlignment
-
getEffectiveContentHorizontalAlignment
-
getState
-
isTracking
public boolean isTracking() -
isTouchInside
public boolean isTouchInside() -
getAllTargets
-
getAllControlEvents
-
getContextMenuInteraction
- Since:
- Available in iOS 14.0 and later.
-
isContextMenuInteractionEnabled
public boolean isContextMenuInteractionEnabled()- Since:
- Available in iOS 14.0 and later.
-
setContextMenuInteractionEnabled
public void setContextMenuInteractionEnabled(boolean v)- Since:
- Available in iOS 14.0 and later.
-
showsMenuAsPrimaryAction
public boolean showsMenuAsPrimaryAction()- Since:
- Available in iOS 14.0 and later.
-
setShowsMenuAsPrimaryAction
public void setShowsMenuAsPrimaryAction(boolean v)- Since:
- Available in iOS 14.0 and later.
-
getToolTip
- Since:
- Available in iOS 15.0 and later.
-
setToolTip
- Since:
- Available in iOS 15.0 and later.
-
getToolTipInteraction
- Since:
- Available in iOS 15.0 and later.
-
getLayerClass
-
addOnTouchDownListener
-
addOnTouchDownRepeatListener
-
addOnTouchDragInsideListener
-
addOnTouchDragOutsideListener
-
addOnTouchDragEnterListener
-
addOnTouchDragExitListener
-
addOnTouchUpInsideListener
-
addOnTouchUpOutsideListener
-
addOnTouchCancelListener
-
addOnValueChangedListener
-
addOnEditingDidBegin
-
addOnEditingChangedListener
-
addOnEditingDidEndListener
-
addOnEditingDidEndOnExitListener
-
addOnPrimaryActionTriggeredListener
-
removeListener
-
init
-
init
-
init
- Since:
- Available in iOS 14.0 and later.
-
beginTracking
-
continueTracking
-
endTracking
-
cancelTracking
-
addTarget
-
removeTarget
-
addAction
- Since:
- Available in iOS 14.0 and later.
-
removeAction
- Since:
- Available in iOS 14.0 and later.
-
removeAction
- Since:
- Available in iOS 14.0 and later.
-
getActions
-
enumerateEventHandlers
public void enumerateEventHandlers(VoidBlock5<UIAction,NSObject,Selector,UIControlEvents,BooleanPtr> iterator)- Since:
- Available in iOS 14.0 and later.
-
sendAction
-
sendAction
- Since:
- Available in iOS 14.0 and later.
-
sendControlEventsActions
-
getUserInterfaceLayoutDirection
public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute attribute)- Since:
- Available in iOS 9.0 and later.
-
getUserInterfaceLayoutDirection
public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)- Since:
- Available in iOS 10.0 and later.
-
getConfiguration
public UIContextMenuConfiguration getConfiguration(UIContextMenuInteraction interaction, CGPoint location)- Specified by:
getConfigurationin interfaceUIContextMenuInteractionDelegate- Since:
- Available in iOS 14.0 and later.
-
getPreviewForHighlightingMenu
public UITargetedPreview getPreviewForHighlightingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration)- Specified by:
getPreviewForHighlightingMenuin interfaceUIContextMenuInteractionDelegate- Since:
- Available in iOS 14.0 and later.
-
getPreviewForDismissingMenu
public UITargetedPreview getPreviewForDismissingMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration)- Specified by:
getPreviewForDismissingMenuin interfaceUIContextMenuInteractionDelegate- Since:
- Available in iOS 14.0 and later.
-
willDisplayMenu
public void willDisplayMenu(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator)- Specified by:
willDisplayMenuin interfaceUIContextMenuInteractionDelegate- Since:
- Available in iOS 14.0 and later.
-
willEnd
public void willEnd(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionAnimating animator)- Specified by:
willEndin interfaceUIContextMenuInteractionDelegate- Since:
- Available in iOS 14.0 and later.
-
willPerformPreviewAction
public void willPerformPreviewAction(UIContextMenuInteraction interaction, UIContextMenuConfiguration configuration, UIContextMenuInteractionCommitAnimating animator)- Specified by:
willPerformPreviewActionin interfaceUIContextMenuInteractionDelegate
-