Interface UIDocumentInteractionControllerDelegate


  • public interface UIDocumentInteractionControllerDelegate
    API-Since: 3.2
    • Method Detail

      • documentInteractionControllerCanPerformAction

        @Deprecated
        default boolean documentInteractionControllerCanPerformAction​(@NotNull
                                                                      @NotNull UIDocumentInteractionController controller,
                                                                      @Nullable
                                                                      @Nullable org.moe.natj.objc.SEL action)
        Deprecated.
        Used to handle additional menu items that can be performed on the item specified by URL. Currently only supports the "copy:", "print:" and "saveToCameraRoll:" actions. API-Since: 3.2 Deprecated-Since: 6.0
      • documentInteractionControllerDidEndSendingToApplication

        default void documentInteractionControllerDidEndSendingToApplication​(@NotNull
                                                                             @NotNull UIDocumentInteractionController controller,
                                                                             @Nullable
                                                                             @Nullable java.lang.String application)
      • documentInteractionControllerPerformAction

        @Deprecated
        default boolean documentInteractionControllerPerformAction​(@NotNull
                                                                   @NotNull UIDocumentInteractionController controller,
                                                                   @Nullable
                                                                   @Nullable org.moe.natj.objc.SEL action)
        Deprecated.
        API-Since: 3.2 Deprecated-Since: 6.0
      • documentInteractionControllerWillBeginSendingToApplication

        default void documentInteractionControllerWillBeginSendingToApplication​(@NotNull
                                                                                @NotNull UIDocumentInteractionController controller,
                                                                                @Nullable
                                                                                @Nullable java.lang.String application)
        bundle ID
      • documentInteractionControllerDidDismissOpenInMenu

        default void documentInteractionControllerDidDismissOpenInMenu​(@NotNull
                                                                       @NotNull UIDocumentInteractionController controller)
      • documentInteractionControllerDidDismissOptionsMenu

        default void documentInteractionControllerDidDismissOptionsMenu​(@NotNull
                                                                        @NotNull UIDocumentInteractionController controller)
      • documentInteractionControllerDidEndPreview

        default void documentInteractionControllerDidEndPreview​(@NotNull
                                                                @NotNull UIDocumentInteractionController controller)
      • documentInteractionControllerRectForPreview

        default CGRect documentInteractionControllerRectForPreview​(@NotNull
                                                                   @NotNull UIDocumentInteractionController controller)
        If preview is supported, these provide the view and rect that will be used as the starting point for the animation to the full screen preview. The actual animation that is performed depends upon the platform and other factors. If documentInteractionControllerRectForPreview is not implemented, the specified view's bounds will be used. If documentInteractionControllerViewForPreview is not implemented, the preview controller will simply fade in instead of scaling up.
      • documentInteractionControllerViewControllerForPreview

        @NotNull
        default @NotNull UIViewController documentInteractionControllerViewControllerForPreview​(@NotNull
                                                                                                @NotNull UIDocumentInteractionController controller)
        If preview is supported, this provides the view controller on which the preview will be presented. This method is required if preview is supported. If presenting atop a navigation stack, provide the navigation controller in order to animate in a manner consistent with the rest of the platform.
      • documentInteractionControllerViewForPreview

        @Nullable
        default @Nullable UIView documentInteractionControllerViewForPreview​(@NotNull
                                                                             @NotNull UIDocumentInteractionController controller)
      • documentInteractionControllerWillBeginPreview

        default void documentInteractionControllerWillBeginPreview​(@NotNull
                                                                   @NotNull UIDocumentInteractionController controller)
        Preview presented/dismissed on document. Use to set up any HI underneath.
      • documentInteractionControllerWillPresentOpenInMenu

        default void documentInteractionControllerWillPresentOpenInMenu​(@NotNull
                                                                        @NotNull UIDocumentInteractionController controller)
        Open in menu presented/dismissed on document. Use to set up any HI underneath.
      • documentInteractionControllerWillPresentOptionsMenu

        default void documentInteractionControllerWillPresentOptionsMenu​(@NotNull
                                                                         @NotNull UIDocumentInteractionController controller)
        Options menu presented/dismissed on document. Use to set up any HI underneath.