Package apple.uikit.protocol
Interface UISpringLoadedInteractionContext
-
public interface UISpringLoadedInteractionContextUISpringLoadedContext supplies information about the springloading state and current drag.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CGPointlocationInView(UIView view)Returns the point computed as the location of the current drag in a given view.voidsetTargetItem(java.lang.Object value)The `targetItem` allows to distinguish a region of the view on which the interaction is installed.voidsetTargetView(UIView value)The view to which the interaction effect is applied.longstate()The state that describes the current springloading style.java.lang.ObjecttargetItem()The `targetItem` allows to distinguish a region of the view on which the interaction is installed.UIViewtargetView()The view to which the interaction effect is applied.
-
-
-
Method Detail
-
locationInView
CGPoint locationInView(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(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(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
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
UIView targetView()
The view to which the interaction effect is applied. Defaults to the interaction's view.
-
-