Interface UISpringLoadedInteractionContext


  • public interface UISpringLoadedInteractionContext
    UISpringLoadedContext supplies information about the springloading state and current drag.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CGPoint locationInView​(UIView view)
      Returns the point computed as the location of the current drag in a given view.
      void setTargetItem​(java.lang.Object value)
      The `targetItem` allows to distinguish a region of the view on which the interaction is installed.
      void setTargetView​(UIView value)
      The view to which the interaction effect is applied.
      long state()
      The state that describes the current springloading style.
      java.lang.Object targetItem()
      The `targetItem` allows to distinguish a region of the view on which the interaction is installed.
      UIView targetView()
      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.