Interface NSFileProviderCustomAction


  • public interface NSFileProviderCustomAction
    API-Since: 16.0
    • Method Detail

      • performActionWithIdentifierOnItemsWithIdentifiersCompletionHandler

        @NotNull
        @NotNull NSProgress performActionWithIdentifierOnItemsWithIdentifiersCompletionHandler​(@NotNull
                                                                                               @NotNull java.lang.String actionIdentifier,
                                                                                               @NotNull
                                                                                               @NotNull NSArray<java.lang.String> itemIdentifiers,
                                                                                               @NotNull
                                                                                               @NotNull NSFileProviderCustomAction.Block_performActionWithIdentifierOnItemsWithIdentifiersCompletionHandler completionHandler)
        Perform a custom action identified by `actionIdentifier`, on items identified by `itemIdentifiers`. Custom actions are defined in the File Provider Extension's Info.plist, under the `NSExtensionFileProviderActions` key. The format of this key is identical to actions defined in a FileProviderUI extension. Cancellations: ------------ If the NSProgress returned by this method is cancelled, the extension should call the completion handler with (NSUserCancelledError) in the NSProgress cancellation handler.