Package apple.uikit.protocol
Interface UITextSelectionHandleView
-
- All Superinterfaces:
UICoordinateSpace
public interface UITextSelectionHandleView extends UICoordinateSpace
[@protocol] UITextSelectionHandleView A view that represents a selection handle drawn at the edges of contiguous selection ranges. When a selection is ranged (i.e., length is > 0), and the device supports range adjustment via a gesture, selection handles ("lollipops") are displayed at the edges of the contiguous selection (usually a UITextSelectionHighlightView). API-Since: 17.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable UIBezierPathcustomShape()If applicable, a custom shape for the lollipop stem.longdirection()Controls which direction the handle is oriented.booleanisVertical()Convenience accessor for @c direction calculations.CGRectpreferredFrameForRect(CGRect rect)Provides a preferred frame given @c rect based on the current appearance configuration.voidsetCustomShape(@Nullable UIBezierPath value)If applicable, a custom shape for the lollipop stem.voidsetDirection(long value)Controls which direction the handle is oriented.-
Methods inherited from interface apple.uikit.protocol.UICoordinateSpace
bounds, convertPointFromCoordinateSpace, convertPointToCoordinateSpace, convertRectFromCoordinateSpace, convertRectToCoordinateSpace
-
-
-
-
Method Detail
-
customShape
@Nullable @Nullable UIBezierPath customShape()
If applicable, a custom shape for the lollipop stem. Default is @c nil, which results in a rounded rect style based on bounds.
-
direction
long direction()
Controls which direction the handle is oriented. For example, NSDirectionalRectEdgeLeading indicates the handle is on the leading edge, so the dot will be rendered on top.
-
isVertical
boolean isVertical()
Convenience accessor for @c direction calculations.
-
preferredFrameForRect
CGRect preferredFrameForRect(CGRect rect)
Provides a preferred frame given @c rect based on the current appearance configuration.
-
setCustomShape
void setCustomShape(@Nullable @Nullable UIBezierPath value)If applicable, a custom shape for the lollipop stem. Default is @c nil, which results in a rounded rect style based on bounds.
-
setDirection
void setDirection(long value)
Controls which direction the handle is oriented. For example, NSDirectionalRectEdgeLeading indicates the handle is on the leading edge, so the dot will be rendered on top.
-
-