pub unsafe trait NSFileProviderServicing: NSObjectProtocol {
// Provided method
unsafe fn supportedServiceSourcesForItemIdentifier_completionHandler(
&self,
item_identifier: &NSFileProviderItemIdentifier,
completion_handler: &DynBlock<dyn Fn(*mut NSArray<ProtocolObject<dyn NSFileProviderServiceSource>>, *mut NSError)>,
) -> Retained<NSProgress>
where Self: Sized + Message { ... }
}
NSFileProviderReplicatedExtension
only.Expand description
Provided Methods§
Sourceunsafe fn supportedServiceSourcesForItemIdentifier_completionHandler(
&self,
item_identifier: &NSFileProviderItemIdentifier,
completion_handler: &DynBlock<dyn Fn(*mut NSArray<ProtocolObject<dyn NSFileProviderServiceSource>>, *mut NSError)>,
) -> Retained<NSProgress>
Available on crate features NSFileProviderItem
and NSFileProviderService
and block2
only.
unsafe fn supportedServiceSourcesForItemIdentifier_completionHandler( &self, item_identifier: &NSFileProviderItemIdentifier, completion_handler: &DynBlock<dyn Fn(*mut NSArray<ProtocolObject<dyn NSFileProviderServiceSource>>, *mut NSError)>, ) -> Retained<NSProgress>
NSFileProviderItem
and NSFileProviderService
and block2
only.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
itemIdentifier.
Client applications can retrieve the list of supported services by calling
-[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.