Package apple.uikit

Class UIDocumentInteractionController

    • Constructor Detail

      • UIDocumentInteractionController

        protected UIDocumentInteractionController​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • interactionControllerWithURL

        @NotNull
        public static @NotNull UIDocumentInteractionController interactionControllerWithURL​(@NotNull
                                                                                            @NotNull NSURL url)
        use file to determine UTI. assumes file is complete
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • URL

        @Nullable
        public @Nullable NSURL URL()
        default is nil. if set, updates UTI, icon and name
      • UTI

        @Nullable
        public @Nullable java.lang.String UTI()
        determined from name if set, URL otherwise, override if the name or URL uses a custom scheme and the UTI can't be determined automatically
      • actionSheetClickedButtonAtIndex

        @Deprecated
        public void actionSheetClickedButtonAtIndex​(@NotNull
                                                    @NotNull UIActionSheet actionSheet,
                                                    long buttonIndex)
        Deprecated.
        Description copied from interface: UIActionSheetDelegate
        Called when a button is clicked. The view will be automatically dismissed after this call returns API-Since: 2.0 Deprecated-Since: 8.3 Deprecated-Message: Use UIAlertController instead.
        Specified by:
        actionSheetClickedButtonAtIndex in interface UIActionSheetDelegate
      • actionSheetCancel

        @Deprecated
        public void actionSheetCancel​(@NotNull
                                      @NotNull UIActionSheet actionSheet)
        Deprecated.
        Description copied from interface: UIActionSheetDelegate
        Called when we cancel a view (eg. the user clicks the Home button). This is not called when the user clicks the cancel button. If not defined in the delegate, we simulate a click in the cancel button API-Since: 2.0 Deprecated-Since: 8.3 Deprecated-Message: Use UIAlertController instead.
        Specified by:
        actionSheetCancel in interface UIActionSheetDelegate
      • annotation

        @Nullable
        public @Nullable java.lang.Object annotation()
        additional plist information for application to pass to receiver (must be a plist object). default is nil.
      • dismissMenuAnimated

        public void dismissMenuAnimated​(boolean animated)
        Dismiss any visible menus.
      • dismissPreviewAnimated

        public void dismissPreviewAnimated​(boolean animated)
        Dismiss the full screen quick look window if it is visible.
      • gestureRecognizers

        @NotNull
        public @NotNull NSArray<? extends UIGestureRecognizer> gestureRecognizers()
        Returns an array of gesture recognizers preconfigured to manage the quick look and options menu. These gesture recognizers should only be installed on your view when the file has been copied locally and is present at URL.
      • icons

        @NotNull
        public @NotNull NSArray<? extends UIImage> icons()
        determined from name if set, URL otherwise. will return a generic document icon if an icon cannot be determined. returns an array of icons sorted from smallest to largest.
      • name

        @Nullable
        public @Nullable java.lang.String name()
        determined from URL, override if the URL uses a custom scheme and the name can't be determined automatically
      • presentOpenInMenuFromBarButtonItemAnimated

        public boolean presentOpenInMenuFromBarButtonItemAnimated​(@NotNull
                                                                  @NotNull UIBarButtonItem item,
                                                                  boolean animated)
      • presentOpenInMenuFromRectInViewAnimated

        public boolean presentOpenInMenuFromRectInViewAnimated​(CGRect rect,
                                                               @NotNull
                                                               @NotNull UIView view,
                                                               boolean animated)
        Presents a menu allowing the user to open the document in another application. The menu will contain all applications that can open the item at URL. Returns NO if there are no applications that can open the item at URL.
      • presentOptionsMenuFromBarButtonItemAnimated

        public boolean presentOptionsMenuFromBarButtonItemAnimated​(@NotNull
                                                                   @NotNull UIBarButtonItem item,
                                                                   boolean animated)
      • presentOptionsMenuFromRectInViewAnimated

        public boolean presentOptionsMenuFromRectInViewAnimated​(CGRect rect,
                                                                @NotNull
                                                                @NotNull UIView view,
                                                                boolean animated)
        This is the default method you should call to give your users the option to quick look, open, or copy the document. Presents a menu allowing the user to Quick Look, open, or copy the item specified by URL. This automatically determines the correct application or applications that can open the item at URL. Returns NO if the options menu contained no options and was not opened. Note that you must implement the delegate method documentInteractionControllerViewControllerForPreview: to get the Quick Look menu item.
      • presentPreviewAnimated

        public boolean presentPreviewAnimated​(boolean animated)
        Bypasses the menu and opens the full screen preview window for the item at URL. Returns NO if the item could not be previewed. Note that you must implement the delegate method documentInteractionControllerViewControllerForPreview: to preview the document.
      • setAnnotation

        public void setAnnotation​(@Nullable
                                  @Nullable java.lang.Object value)
        additional plist information for application to pass to receiver (must be a plist object). default is nil.
      • setName

        public void setName​(@Nullable
                            @Nullable java.lang.String value)
        determined from URL, override if the URL uses a custom scheme and the name can't be determined automatically
      • setURL

        public void setURL​(@Nullable
                           @Nullable NSURL value)
        default is nil. if set, updates UTI, icon and name
      • setUTI

        public void setUTI​(@Nullable
                           @Nullable java.lang.String value)
        determined from name if set, URL otherwise, override if the name or URL uses a custom scheme and the UTI can't be determined automatically
      • willPresentActionSheet

        @Deprecated
        public void willPresentActionSheet​(@NotNull
                                           @NotNull UIActionSheet actionSheet)
        Deprecated.
        Description copied from interface: UIActionSheetDelegate
        before animation and showing view API-Since: 2.0 Deprecated-Since: 8.3 Deprecated-Message: Use UIAlertController instead.
        Specified by:
        willPresentActionSheet in interface UIActionSheetDelegate
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.