Package apple.uikit.protocol
Interface UISpringLoadedInteractionContext
-
public interface UISpringLoadedInteractionContextUISpringLoadedContext supplies information about the springloading state and current drag. API-Since: 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CGPointlocationInView(@Nullable UIView view)Returns the point computed as the location of the current drag in a given view.voidsetTargetItem(@Nullable java.lang.Object value)The `targetItem` allows to distinguish a region of the view on which the interaction is installed.voidsetTargetView(@Nullable UIView value)The view to which the interaction effect is applied.longstate()The state that describes the current springloading style.@Nullable java.lang.ObjecttargetItem()The `targetItem` allows to distinguish a region of the view on which the interaction is installed.@Nullable UIViewtargetView()The view to which the interaction effect is applied.
-
-
-
Method Detail
-
locationInView
CGPoint locationInView(@Nullable @Nullable UIView view)
Returns the point computed as the location of the current drag in a given view.- Parameters:
view- A view on which the drag is taking place. Specify nil to indicate the window.- Returns:
- A point in the local coordinate system of `view`.
-
setTargetItem
void setTargetItem(@Nullable @Nullable java.lang.Object value)The `targetItem` allows to distinguish a region of the view on which the interaction is installed. It is convenient to set this property to a model object associated to `targetView`.
-
setTargetView
void setTargetView(@Nullable @Nullable UIView value)The view to which the interaction effect is applied. Defaults to the interaction's view.
-
state
long state()
The state that describes the current springloading style.
-
targetItem
@Nullable @Nullable java.lang.Object targetItem()
The `targetItem` allows to distinguish a region of the view on which the interaction is installed. It is convenient to set this property to a model object associated to `targetView`.
-
targetView
@Nullable @Nullable UIView targetView()
The view to which the interaction effect is applied. Defaults to the interaction's view.
-
-