Interface NSFileProviderServicing


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

      • supportedServiceSourcesForItemIdentifierCompletionHandler

        @NotNull
        @NotNull NSProgress supportedServiceSourcesForItemIdentifierCompletionHandler​(@NotNull
                                                                                      @NotNull java.lang.String itemIdentifier,
                                                                                      @NotNull
                                                                                      @NotNull NSFileProviderServicing.Block_supportedServiceSourcesForItemIdentifierCompletionHandler completionHandler)
        A file provider can implemement this method to return service sources that provide custom communication channels to client applications. The service sources must be tied to the item identified by @c itemIdentifier. Client applications can retrieve the list of supported services by calling [@c] -[NSFileManager getFileProviderServicesForItemAtURL:] for a specific item URL. Cancellations: ------------ If the NSProgress returned by this method is cancelled, the extension should call the completion handler with (nil, NSUserCancelledError) in the NSProgress cancellation handler. Execution time: --------------- This method is not expected to take more than a few seconds to complete the retrieval of the thumbnails. The system will call `cancel` on the progress if the operation takes too much time. The extension is then expected to quickly call the completion handler.