Package apple.uikit
Class UIDocumentInteractionController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIDocumentInteractionController
-
- All Implemented Interfaces:
NSObject,UIActionSheetDelegate
public class UIDocumentInteractionController extends NSObject implements UIActionSheetDelegate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIDocumentInteractionController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()voidactionSheetCancel(UIActionSheet actionSheet)Deprecated.voidactionSheetClickedButtonAtIndex(UIActionSheet actionSheet, long buttonIndex)Deprecated.voidactionSheetDidDismissWithButtonIndex(UIActionSheet actionSheet, long buttonIndex)Deprecated.voidactionSheetWillDismissWithButtonIndex(UIActionSheet actionSheet, long buttonIndex)Deprecated.static UIDocumentInteractionControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)java.lang.Objectannotation()additional plist information for application to pass to receiver (must be a plist object). default is nil.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()UIDocumentInteractionControllerDelegatedelegate()default is nilstatic java.lang.Stringdescription_static()voiddidPresentActionSheet(UIActionSheet actionSheet)Deprecated.voiddismissMenuAnimated(boolean animated)Dismiss any visible menus.voiddismissPreviewAnimated(boolean animated)Dismiss the full screen quick look window if it is visible.NSArray<? extends UIGestureRecognizer>gestureRecognizers()Returns an array of gesture recognizers preconfigured to manage the quick look and options menu.static longhash_static()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.UIDocumentInteractionControllerinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static UIDocumentInteractionControllerinteractionControllerWithURL(NSURL url)use file to determine UTI. assumes file is completestatic booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)java.lang.Stringname()determined from URL, override if the URL uses a custom scheme and the name can't be determined automaticallystatic java.lang.Objectnew_objc()booleanpresentOpenInMenuFromBarButtonItemAnimated(UIBarButtonItem item, boolean animated)booleanpresentOpenInMenuFromRectInViewAnimated(CGRect rect, UIView view, boolean animated)Presents a menu allowing the user to open the document in another application.booleanpresentOptionsMenuFromBarButtonItemAnimated(UIBarButtonItem item, boolean animated)booleanpresentOptionsMenuFromRectInViewAnimated(CGRect rect, 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.booleanpresentPreviewAnimated(boolean animated)Bypasses the menu and opens the full screen preview window for the item at URL.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAnnotation(java.lang.Object value)additional plist information for application to pass to receiver (must be a plist object). default is nil.voidsetDelegate(UIDocumentInteractionControllerDelegate value)default is nilvoidsetDelegate_unsafe(UIDocumentInteractionControllerDelegate value)default is nilvoidsetName(java.lang.String value)determined from URL, override if the URL uses a custom scheme and the name can't be determined automaticallyvoidsetURL(NSURL value)default is nil. if set, updates UTI, icon and namevoidsetUTI(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 automaticallystatic voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()NSURLURL()default is nil. if set, updates UTI, icon and namejava.lang.StringUTI()determined from name if set, URL otherwise, override if the name or URL uses a custom scheme and the UTI can't be determined automaticallystatic longversion_static()voidwillPresentActionSheet(UIActionSheet actionSheet)Deprecated.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UIDocumentInteractionController alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static 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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
interactionControllerWithURL
public static UIDocumentInteractionController interactionControllerWithURL(NSURL url)
use file to determine UTI. assumes file is complete
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
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
public NSURL URL()
default is nil. if set, updates UTI, icon and name
-
UTI
public 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(UIActionSheet actionSheet, long buttonIndex)
Deprecated.Description copied from interface:UIActionSheetDelegateCalled when a button is clicked. The view will be automatically dismissed after this call returns- Specified by:
actionSheetClickedButtonAtIndexin interfaceUIActionSheetDelegate
-
actionSheetDidDismissWithButtonIndex
@Deprecated public void actionSheetDidDismissWithButtonIndex(UIActionSheet actionSheet, long buttonIndex)
Deprecated.Description copied from interface:UIActionSheetDelegateafter animation- Specified by:
actionSheetDidDismissWithButtonIndexin interfaceUIActionSheetDelegate
-
actionSheetWillDismissWithButtonIndex
@Deprecated public void actionSheetWillDismissWithButtonIndex(UIActionSheet actionSheet, long buttonIndex)
Deprecated.Description copied from interface:UIActionSheetDelegatebefore animation and hiding view- Specified by:
actionSheetWillDismissWithButtonIndexin interfaceUIActionSheetDelegate
-
actionSheetCancel
@Deprecated public void actionSheetCancel(UIActionSheet actionSheet)
Deprecated.Description copied from interface:UIActionSheetDelegateCalled 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- Specified by:
actionSheetCancelin interfaceUIActionSheetDelegate
-
annotation
public java.lang.Object annotation()
additional plist information for application to pass to receiver (must be a plist object). default is nil.
-
delegate
public UIDocumentInteractionControllerDelegate delegate()
default is nil
-
didPresentActionSheet
@Deprecated public void didPresentActionSheet(UIActionSheet actionSheet)
Deprecated.Description copied from interface:UIActionSheetDelegateafter animation- Specified by:
didPresentActionSheetin interfaceUIActionSheetDelegate
-
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
public 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
public 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.
-
init
public UIDocumentInteractionController init()
-
name
public 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(UIBarButtonItem item, boolean animated)
-
presentOpenInMenuFromRectInViewAnimated
public boolean presentOpenInMenuFromRectInViewAnimated(CGRect rect, 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(UIBarButtonItem item, boolean animated)
-
presentOptionsMenuFromRectInViewAnimated
public boolean presentOptionsMenuFromRectInViewAnimated(CGRect rect, 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(java.lang.Object value)
additional plist information for application to pass to receiver (must be a plist object). default is nil.
-
setDelegate_unsafe
public void setDelegate_unsafe(UIDocumentInteractionControllerDelegate value)
default is nil
-
setDelegate
public void setDelegate(UIDocumentInteractionControllerDelegate value)
default is nil
-
setName
public void setName(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(NSURL value)
default is nil. if set, updates UTI, icon and name
-
setUTI
public void setUTI(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(UIActionSheet actionSheet)
Deprecated.Description copied from interface:UIActionSheetDelegatebefore animation and showing view- Specified by:
willPresentActionSheetin interfaceUIActionSheetDelegate
-
-