Package apple.foundation
Class NSItemProvider
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSItemProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSItemProvider(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()static NSItemProvideralloc()static NSItemProviderallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)booleancanLoadObjectOfClass(@NotNull NSItemProviderReading aClass)API-Since: 11.0static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()booleanhasItemConformingToTypeIdentifier(@NotNull java.lang.String typeIdentifier)Returns YES if the item provider has at least one item that conforms to the supplied type identifier.booleanhasRepresentationConformingToTypeIdentifierFileOptions(@NotNull java.lang.String typeIdentifier, long fileOptions)API-Since: 11.0NSItemProviderinit()NSItemProviderinitWithContentsOfURL(NSURL fileURL)Initialize an NSItemProvider with load handlers for the given file URL, and the file content.NSItemProviderinitWithContentsOfURLContentTypeOpenInPlaceCoordinatedVisibility(@NotNull NSURL fileURL, @Nullable UTType contentType, boolean openInPlace, boolean coordinated, long visibility)Initialize this instance with the contents of a URL \discussion The filename of the URL is copied into the \c suggestedName property \param fileURL The URL of the file.NSItemProviderinitWithItemTypeIdentifier(@Nullable NSSecureCoding item, @Nullable java.lang.String typeIdentifier)Initialize an NSItemProvider with an object assigned to a single UTI.NSItemProviderinitWithObject(@NotNull NSItemProviderWriting object)Instantiate an NSItemProvider by querying an object for its eligible type identifiers via the NSItemProviderWriting protocol.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 booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@NotNull NSProgressloadDataRepresentationForContentTypeCompletionHandler(@NotNull UTType contentType, @NotNull NSItemProvider.Block_loadDataRepresentationForContentTypeCompletionHandler completionHandler)Load a representation as data \discussion If the requested representation was registered as a file, an \c NSData with the contents of the file will be provided.@NotNull NSProgressloadDataRepresentationForTypeIdentifierCompletionHandler(@NotNull java.lang.String typeIdentifier, @NotNull NSItemProvider.Block_loadDataRepresentationForTypeIdentifierCompletionHandler completionHandler)Copies the provided data into an NSData object.@NotNull NSProgressloadFileRepresentationForContentTypeOpenInPlaceCompletionHandler(@NotNull UTType contentType, boolean openInPlace, @NotNull NSItemProvider.Block_loadFileRepresentationForContentTypeOpenInPlaceCompletionHandler completionHandler)Load a representation as a file \discussion Except for files registered as open-in-place, a temporary file containing a copy of the original will be provided to your completion handler.@NotNull NSProgressloadFileRepresentationForTypeIdentifierCompletionHandler(@NotNull java.lang.String typeIdentifier, @NotNull NSItemProvider.Block_loadFileRepresentationForTypeIdentifierCompletionHandler completionHandler)Writes a copy of the data to a temporary file.@NotNull NSProgressloadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(@NotNull java.lang.String typeIdentifier, @NotNull NSItemProvider.Block_loadInPlaceFileRepresentationForTypeIdentifierCompletionHandler completionHandler)Open the original file in place, if possible.voidloadItemForTypeIdentifierOptionsCompletionHandler(@NotNull java.lang.String typeIdentifier, @Nullable NSDictionary<?,?> options, @Nullable NSItemProvider.Block_loadItemForTypeIdentifierOptionsCompletionHandler completionHandler)Loads the best matching item for a type identifier.@NotNull NSProgressloadObjectOfClassCompletionHandler(@NotNull NSItemProviderReading aClass, @NotNull NSItemProvider.Block_loadObjectOfClassCompletionHandler completionHandler)Instantiate an object using the NSItemProviderReading protocol.voidloadPreviewImageWithOptionsCompletionHandler(NSDictionary<?,?> options, NSItemProvider.Block_loadPreviewImageWithOptionsCompletionHandler completionHandler)Loads the preview image for this item by either calling the supplied preview block or falling back to a QuickLook-based handler.static NSItemProvidernew_objc()CGSizepreferredPresentationSize()Estimated presentation size, in points.longpreferredPresentationStyle()API-Since: 11.0@Nullable NSItemProvider.Block_previewImageHandler_retpreviewImageHandler()Sets a custom preview image handler block for this item provider.voidregisterCKShareContainerAllowedSharingOptions(@NotNull CKShare share, @NotNull CKContainer container, @NotNull CKAllowedSharingOptions allowedOptions)Use this method when you have a @c CKShare that is already saved to the server.voidregisterCKShareWithContainerAllowedSharingOptionsPreparationHandler(@NotNull CKContainer container, @NotNull CKAllowedSharingOptions allowedOptions, @NotNull NSItemProvider.Block_registerCKShareWithContainerAllowedSharingOptionsPreparationHandler preparationHandler)Use this method when you want to share a collection of @c CKRecords but don't currently have a @c CKShare.voidregisterDataRepresentationForContentTypeVisibilityLoadHandler(@NotNull UTType contentType, long visibility, @NotNull NSItemProvider.Block_registerDataRepresentationForContentTypeVisibilityLoadHandler loadHandler)Register a representation backed by an \c NSData \discussion The load handler must call the completion block when loading is complete.voidregisterDataRepresentationForTypeIdentifierVisibilityLoadHandler(@NotNull java.lang.String typeIdentifier, long visibility, @NotNull NSItemProvider.Block_registerDataRepresentationForTypeIdentifierVisibilityLoadHandler loadHandler)Registers a data-backed representation.@NotNull NSArray<? extends UTType>registeredContentTypes()Registered content types, in the order they were registered \discussion Content types should be registered in order of fidelity.@NotNull NSArray<? extends UTType>registeredContentTypesConformingToContentType(@NotNull UTType contentType)Return an array of registered content types that conform to a given content type.@NotNull NSArray<? extends UTType>registeredContentTypesForOpenInPlace()Registered content types that can be loaded as files opened in place API-Since: 16.0@NotNull NSArray<java.lang.String>registeredTypeIdentifiers()Returns the list of registered type identifiers, in the order they were registered.@NotNull NSArray<java.lang.String>registeredTypeIdentifiersWithFileOptions(long fileOptions)API-Since: 11.0voidregisterFileRepresentationForContentTypeVisibilityOpenInPlaceLoadHandler(@NotNull UTType contentType, long visibility, boolean openInPlace, @NotNull NSItemProvider.Block_registerFileRepresentationForContentTypeVisibilityOpenInPlaceLoadHandler loadHandler)Register a representation backed by a file \discussion It is permissible to provide a URL pointing to a folder.voidregisterFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(@NotNull java.lang.String typeIdentifier, long fileOptions, long visibility, @NotNull NSItemProvider.Block_registerFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler loadHandler)Registers a file-backed representation.voidregisterItemForTypeIdentifierLoadHandler(@NotNull java.lang.String typeIdentifier, @NotNull NSItemProvider.Block_registerItemForTypeIdentifierLoadHandler loadHandler)Registers a load handler that returns an object, assigned to a single UTI.voidregisterObjectOfClassVisibilityLoadHandler(@NotNull NSItemProviderWriting aClass, long visibility, @NotNull NSItemProvider.Block_registerObjectOfClassVisibilityLoadHandler loadHandler)Add representations from a class, but defer loading the object until needed.voidregisterObjectVisibility(@NotNull NSItemProviderWriting object, long visibility)Add representations from an object using the NSItemProviderWriting protocol.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetPreferredPresentationSize(CGSize value)Estimated presentation size, in points.voidsetPreferredPresentationStyle(long value)API-Since: 11.0voidsetPreviewImageHandler(@Nullable NSItemProvider.Block_setPreviewImageHandler value)Sets a custom preview image handler block for this item provider.voidsetSuggestedName(@Nullable java.lang.String value)API-Since: 11.0voidsetTeamData(@Nullable NSData value)API-Since: 11.0static voidsetVersion_static(long aVersion)@Nullable java.lang.StringsuggestedName()API-Since: 11.0static org.moe.natj.objc.Classsuperclass_static()@Nullable NSDatateamData()API-Since: 11.0static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSItemProvider alloc()
-
allocWithZone
public static NSItemProvider allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
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()
-
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)
-
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)
-
new_objc
public static NSItemProvider 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()
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
hasItemConformingToTypeIdentifier
public boolean hasItemConformingToTypeIdentifier(@NotNull @NotNull java.lang.String typeIdentifier)Returns YES if the item provider has at least one item that conforms to the supplied type identifier.
-
init
public NSItemProvider init()
-
initWithContentsOfURL
public NSItemProvider initWithContentsOfURL(NSURL fileURL)
Initialize an NSItemProvider with load handlers for the given file URL, and the file content. A type identifier is inferred from the file extension.
-
initWithItemTypeIdentifier
public NSItemProvider initWithItemTypeIdentifier(@Nullable @Nullable NSSecureCoding item, @Nullable @Nullable java.lang.String typeIdentifier)
Initialize an NSItemProvider with an object assigned to a single UTI. `item` is retained.
-
loadItemForTypeIdentifierOptionsCompletionHandler
public void loadItemForTypeIdentifierOptionsCompletionHandler(@NotNull @NotNull java.lang.String typeIdentifier, @Nullable @Nullable NSDictionary<?,?> options, @Nullable @Nullable NSItemProvider.Block_loadItemForTypeIdentifierOptionsCompletionHandler completionHandler)Loads the best matching item for a type identifier. The returned object depends on the class specified for the completion handler's `item` parameter. See the table above for coercion rules.
-
loadPreviewImageWithOptionsCompletionHandler
public void loadPreviewImageWithOptionsCompletionHandler(NSDictionary<?,?> options, NSItemProvider.Block_loadPreviewImageWithOptionsCompletionHandler completionHandler)
Loads the preview image for this item by either calling the supplied preview block or falling back to a QuickLook-based handler. This method, like loadItemForTypeIdentifier:options:completionHandler:, supports implicit type coercion for the item parameter of the completion block. Allowed value classes are: NSData, NSURL, UIImage/NSImage. API-Since: 8.0
-
registeredTypeIdentifiers
@NotNull public @NotNull NSArray<java.lang.String> registeredTypeIdentifiers()
Returns the list of registered type identifiers, in the order they were registered.
-
canLoadObjectOfClass
public boolean canLoadObjectOfClass(@NotNull @NotNull NSItemProviderReading aClass)API-Since: 11.0
-
hasRepresentationConformingToTypeIdentifierFileOptions
public boolean hasRepresentationConformingToTypeIdentifierFileOptions(@NotNull @NotNull java.lang.String typeIdentifier, long fileOptions)API-Since: 11.0
-
initWithObject
public NSItemProvider initWithObject(@NotNull @NotNull NSItemProviderWriting object)
Instantiate an NSItemProvider by querying an object for its eligible type identifiers via the NSItemProviderWriting protocol. API-Since: 11.0
-
loadDataRepresentationForTypeIdentifierCompletionHandler
@NotNull public @NotNull NSProgress loadDataRepresentationForTypeIdentifierCompletionHandler(@NotNull @NotNull java.lang.String typeIdentifier, @NotNull @NotNull NSItemProvider.Block_loadDataRepresentationForTypeIdentifierCompletionHandler completionHandler)
Copies the provided data into an NSData object. API-Since: 11.0
-
loadFileRepresentationForTypeIdentifierCompletionHandler
@NotNull public @NotNull NSProgress loadFileRepresentationForTypeIdentifierCompletionHandler(@NotNull @NotNull java.lang.String typeIdentifier, @NotNull @NotNull NSItemProvider.Block_loadFileRepresentationForTypeIdentifierCompletionHandler completionHandler)
Writes a copy of the data to a temporary file. This file will be deleted when the completion handler returns. Your program should copy or move the file within the completion handler. API-Since: 11.0
-
loadInPlaceFileRepresentationForTypeIdentifierCompletionHandler
@NotNull public @NotNull NSProgress loadInPlaceFileRepresentationForTypeIdentifierCompletionHandler(@NotNull @NotNull java.lang.String typeIdentifier, @NotNull @NotNull NSItemProvider.Block_loadInPlaceFileRepresentationForTypeIdentifierCompletionHandler completionHandler)
Open the original file in place, if possible. If a file is not available for opening in place, a copy of the file is written to a temporary location, and `isInPlace` is set to NO. Your program may then copy or move the file, or the system will delete this file at some point in the future. API-Since: 11.0
-
loadObjectOfClassCompletionHandler
@NotNull public @NotNull NSProgress loadObjectOfClassCompletionHandler(@NotNull @NotNull NSItemProviderReading aClass, @NotNull @NotNull NSItemProvider.Block_loadObjectOfClassCompletionHandler completionHandler)
Instantiate an object using the NSItemProviderReading protocol. API-Since: 11.0
-
preferredPresentationSize
public CGSize preferredPresentationSize()
Estimated presentation size, in points. CGSizeZero value indicates this information is not available. API-Since: 11.0
-
preferredPresentationStyle
public long preferredPresentationStyle()
API-Since: 11.0
-
registerObjectVisibility
public void registerObjectVisibility(@NotNull @NotNull NSItemProviderWriting object, long visibility)Add representations from an object using the NSItemProviderWriting protocol. Duplicate representations are ignored. API-Since: 11.0
-
registeredTypeIdentifiersWithFileOptions
@NotNull public @NotNull NSArray<java.lang.String> registeredTypeIdentifiersWithFileOptions(long fileOptions)
API-Since: 11.0
-
setPreferredPresentationSize
public void setPreferredPresentationSize(CGSize value)
Estimated presentation size, in points. CGSizeZero value indicates this information is not available. API-Since: 11.0
-
setPreferredPresentationStyle
public void setPreferredPresentationStyle(long value)
API-Since: 11.0
-
setSuggestedName
public void setSuggestedName(@Nullable @Nullable java.lang.String value)API-Since: 11.0
-
setTeamData
public void setTeamData(@Nullable @Nullable NSData value)API-Since: 11.0
-
suggestedName
@Nullable public @Nullable java.lang.String suggestedName()
API-Since: 11.0
-
teamData
@Nullable public @Nullable NSData teamData()
API-Since: 11.0
-
previewImageHandler
@Nullable public @Nullable NSItemProvider.Block_previewImageHandler_ret previewImageHandler()
Sets a custom preview image handler block for this item provider. The returned item should preferably be NSData or a file NSURL. API-Since: 8.0
-
registerDataRepresentationForTypeIdentifierVisibilityLoadHandler
public void registerDataRepresentationForTypeIdentifierVisibilityLoadHandler(@NotNull @NotNull java.lang.String typeIdentifier, long visibility, @NotNull @NotNull NSItemProvider.Block_registerDataRepresentationForTypeIdentifierVisibilityLoadHandler loadHandler)Registers a data-backed representation. API-Since: 11.0
-
registerFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler
public void registerFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler(@NotNull @NotNull java.lang.String typeIdentifier, long fileOptions, long visibility, @NotNull @NotNull NSItemProvider.Block_registerFileRepresentationForTypeIdentifierFileOptionsVisibilityLoadHandler loadHandler)Registers a file-backed representation. Set `coordinated` to YES if the returned file must be accessed using NSFileCoordinator. If `NSItemProviderFileOptionOpenInPlace` is not provided, the file provided will be copied before the load handler returns. API-Since: 11.0
-
registerItemForTypeIdentifierLoadHandler
public void registerItemForTypeIdentifierLoadHandler(@NotNull @NotNull java.lang.String typeIdentifier, @NotNull @NotNull NSItemProvider.Block_registerItemForTypeIdentifierLoadHandler loadHandler)Registers a load handler that returns an object, assigned to a single UTI.
-
registerObjectOfClassVisibilityLoadHandler
public void registerObjectOfClassVisibilityLoadHandler(@NotNull @NotNull NSItemProviderWriting aClass, long visibility, @NotNull @NotNull NSItemProvider.Block_registerObjectOfClassVisibilityLoadHandler loadHandler)Add representations from a class, but defer loading the object until needed. API-Since: 11.0
-
setPreviewImageHandler
public void setPreviewImageHandler(@Nullable @Nullable NSItemProvider.Block_setPreviewImageHandler value)Sets a custom preview image handler block for this item provider. The returned item should preferably be NSData or a file NSURL. API-Since: 8.0
-
initWithContentsOfURLContentTypeOpenInPlaceCoordinatedVisibility
public NSItemProvider initWithContentsOfURLContentTypeOpenInPlaceCoordinatedVisibility(@NotNull @NotNull NSURL fileURL, @Nullable @Nullable UTType contentType, boolean openInPlace, boolean coordinated, long visibility)
Initialize this instance with the contents of a URL \discussion The filename of the URL is copied into the \c suggestedName property \param fileURL The URL of the file. \param contentType The content type associated with this file, or \c nil to deduce the content type from the file extension. \param openInPlace Pass \c YES to allow this file to be opened in place. \param coordinated Pass \c YES to use file coordination to access this file, even if it is not opened in place. If \c openInPlace is set to \c YES file coordination will be used and this parameter is ignored. \param visibility The visibility of this representation. API-Since: 16.0
-
loadDataRepresentationForContentTypeCompletionHandler
@NotNull public @NotNull NSProgress loadDataRepresentationForContentTypeCompletionHandler(@NotNull @NotNull UTType contentType, @NotNull @NotNull NSItemProvider.Block_loadDataRepresentationForContentTypeCompletionHandler completionHandler)
Load a representation as data \discussion If the requested representation was registered as a file, an \c NSData with the contents of the file will be provided. If the registered URL points to a folder, an \c NSData containing a zip archive containing that folder will be provided. \note The completion handler may be scheduled on an arbitrary queue. \param contentType Content type of the representation to load. Must conform to one of the content types returned by \c registeredContentTypes \param completionHandler A block that will be called when loading is complete. It will either have a non-nil \c data or a non-nil \c error parameter. \return A progress object. Use it to monitor loading progress, or to cancel loading. API-Since: 16.0
-
loadFileRepresentationForContentTypeOpenInPlaceCompletionHandler
@NotNull public @NotNull NSProgress loadFileRepresentationForContentTypeOpenInPlaceCompletionHandler(@NotNull @NotNull UTType contentType, boolean openInPlace, @NotNull @NotNull NSItemProvider.Block_loadFileRepresentationForContentTypeOpenInPlaceCompletionHandler completionHandler)
Load a representation as a file \discussion Except for files registered as open-in-place, a temporary file containing a copy of the original will be provided to your completion handler. This temporary file will be deleted once your completion handler returns. To keep a copy of this file, move or copy it into another directory before returning from the completion handler. \discussion If the representation was registered as \c NSData its contents will be written to a temporary file. \discussion If \c suggestedName is non-nil, an attempt will be made to use it as the file name, with an appropriate file extension based on the content type. Otherwise, a suitable name and file extension will be chosen based on the content type. \note The completion handler may be scheduled on an arbitrary queue \param contentType Content type of the representation to load. Must conform to one of the content types returned by \c registeredContentTypes \param openInPlace Pass \c YES to attempt to open a file representation in place \param completionHandler A block that will be called when loading is complete. It will either have a non-nil \c URL or a non-nill \c error parameter. The \c openInPlace parameter will be set to \c YES if the file was successfully opened in place, or \c NO if a copy of the file was created in a temporary directory. \return A progress object. Use it to monitor loading progress, or to cancel loading. API-Since: 16.0
-
registerCKShareContainerAllowedSharingOptions
public void registerCKShareContainerAllowedSharingOptions(@NotNull @NotNull CKShare share, @NotNull @NotNull CKContainer container, @NotNull @NotNull CKAllowedSharingOptions allowedOptions)Use this method when you have a @c CKShare that is already saved to the server. Invoking the share sheet with a @c CKShare registered with this method will allow the owner to make modifications to the share settings, or will allow a participant to view the share settings. API-Since: 16.0
-
registerCKShareWithContainerAllowedSharingOptionsPreparationHandler
public void registerCKShareWithContainerAllowedSharingOptionsPreparationHandler(@NotNull @NotNull CKContainer container, @NotNull @NotNull CKAllowedSharingOptions allowedOptions, @NotNull @NotNull NSItemProvider.Block_registerCKShareWithContainerAllowedSharingOptionsPreparationHandler preparationHandler)Use this method when you want to share a collection of @c CKRecords but don't currently have a @c CKShare. When the @c preparationHandler is called, you should create a new @c CKShare with the appropriate root @c CKRecord or @c CKRecordZoneID. After ensuring the share and all records have been saved to the server, invoke the @c preparationCompletionHandler with either the resulting @c CKShare, or an @c NSError if saving failed. Invoking the share sheet with a @c CKShare registered with this method will prompt the user to start sharing. API-Since: 16.0
-
registerDataRepresentationForContentTypeVisibilityLoadHandler
public void registerDataRepresentationForContentTypeVisibilityLoadHandler(@NotNull @NotNull UTType contentType, long visibility, @NotNull @NotNull NSItemProvider.Block_registerDataRepresentationForContentTypeVisibilityLoadHandler loadHandler)Register a representation backed by an \c NSData \discussion The load handler must call the completion block when loading is complete. Pass either a non-nil data object, or a non-nil error. If the load handler returns a non-nil progress object, it should report loading progress and respond to cancelation. \param contentType The content type associated with the data representation. \param visibility Specifies which processes have access to this representation. \param loadHandler A block called to provide the data representation. API-Since: 16.0
-
registerFileRepresentationForContentTypeVisibilityOpenInPlaceLoadHandler
public void registerFileRepresentationForContentTypeVisibilityOpenInPlaceLoadHandler(@NotNull @NotNull UTType contentType, long visibility, boolean openInPlace, @NotNull @NotNull NSItemProvider.Block_registerFileRepresentationForContentTypeVisibilityOpenInPlaceLoadHandler loadHandler)Register a representation backed by a file \discussion It is permissible to provide a URL pointing to a folder. A folder requested as \c NSData will yield a data object containing a zip archive holding a copy of the source folder tree. The load handler must call the completion block when loading is complete. Pass either a non-nil url, or a non-nil error. Pass \c YES to \c coordinated if the file should be accessed using file coordination even if it is not opened in-place. Files registered as open-in-place are assumed to need coordination, and this parameter will be ignored in those cases. If the load handler returns a non-nil progress object, it should report loading progress and respond to cancelation. \note Not all files specified as openable in place can be opened in place by the destination. System security or privacy policies may restrict which files can be opened in place. \param contentType The content type associated with the file representation. \param visibility Specifies which processes have access to this representation. \param openInPlace Specifies whether the file should be openable in place. \param loadHandler A block called to provide the file representation. API-Since: 16.0
-
registeredContentTypes
@NotNull public @NotNull NSArray<? extends UTType> registeredContentTypes()
Registered content types, in the order they were registered \discussion Content types should be registered in order of fidelity. Prefer using content types that appear earlier in the array. API-Since: 16.0
-
registeredContentTypesConformingToContentType
@NotNull public @NotNull NSArray<? extends UTType> registeredContentTypesConformingToContentType(@NotNull @NotNull UTType contentType)
Return an array of registered content types that conform to a given content type. \discussion The returned content types are given in order of fidelity. Prefer content types that appear earlier in the array. API-Since: 16.0
-
registeredContentTypesForOpenInPlace
@NotNull public @NotNull NSArray<? extends UTType> registeredContentTypesForOpenInPlace()
Registered content types that can be loaded as files opened in place API-Since: 16.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-