Interface UIPreviewInteractionDelegate


  • public interface UIPreviewInteractionDelegate
    • Method Detail

      • previewInteractionDidUpdateCommitTransitionEnded

        default void previewInteractionDidUpdateCommitTransitionEnded​(@NotNull
                                                                      @NotNull UIPreviewInteraction previewInteraction,
                                                                      double transitionProgress,
                                                                      boolean ended)
        If implemented, a preview interaction will also trigger haptic feedback when detecting a commit (pop). The provided transitionProgress ranges from 0 to 1. API-Since: 10.0
      • previewInteractionDidUpdatePreviewTransitionEnded

        void previewInteractionDidUpdatePreviewTransitionEnded​(@NotNull
                                                               @NotNull UIPreviewInteraction previewInteraction,
                                                               double transitionProgress,
                                                               boolean ended)
        transitionProgress ranges from 0 to 1 API-Since: 10.0
      • previewInteractionDidCancel

        void previewInteractionDidCancel​(@NotNull
                                         @NotNull UIPreviewInteraction previewInteraction)
        API-Since: 10.0
      • previewInteractionShouldBegin

        default boolean previewInteractionShouldBegin​(@NotNull
                                                      @NotNull UIPreviewInteraction previewInteraction)
        API-Since: 10.0