Interface UILargeContentViewerInteractionDelegate


  • public interface UILargeContentViewerInteractionDelegate
    API-Since: 13.0
    • Method Detail

      • largeContentViewerInteractionDidEndOnItemAtPoint

        default void largeContentViewerInteractionDidEndOnItemAtPoint​(@NotNull
                                                                      @NotNull UILargeContentViewerInteraction interaction,
                                                                      @Nullable
                                                                      @Nullable UILargeContentViewerItem item,
                                                                      CGPoint point)
        Performs an action when the large content viewer gesture ends at the location of the given item. (The point in the interaction's view's coordinate system is also provided.) For example, you may wish to perform the action that would have occurred if the user had tapped on that item. If you don’t implement this method and are using standard UIKit controls, the system performs a default action, such as sending a touchUpInside event to the control. This method is called only if the gesture ends successfully (not if it fails or gets canceled).
      • largeContentViewerInteractionItemAtPoint

        @Nullable
        default @Nullable UILargeContentViewerItem largeContentViewerInteractionItemAtPoint​(@NotNull
                                                                                            @NotNull UILargeContentViewerInteraction interaction,
                                                                                            CGPoint point)
        Returns the item at a given point in the interaction's view's coordinate system. If this is not implemented, -[UIView pointInside:withEvent:] will be called recursively on the interaction's view to find an appropriate view.
      • viewControllerForLargeContentViewerInteraction

        @NotNull
        default @NotNull UIViewController viewControllerForLargeContentViewerInteraction​(@NotNull
                                                                                         @NotNull UILargeContentViewerInteraction interaction)
        Returns the view controller whose region of the screen should be used to display the large content viewer. If this is not implemented, a view controller that contains the interaction's view will be chosen.