NSFileProviderServicing

Trait NSFileProviderServicing 

Source
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 { ... }
}
Available on crate feature NSFileProviderReplicatedExtension only.
Expand description

Provided Methods§

Source

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,

Available on crate features 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 -[NSFileManagergetFileProviderServicesForItemAtURL:] 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.

Trait Implementations§

Source§

impl ProtocolType for dyn NSFileProviderServicing

Source§

const NAME: &'static str = "NSFileProviderServicing"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSFileProviderServicing

Implementations on Foreign Types§

Source§

impl<T> NSFileProviderServicing for ProtocolObject<T>

Implementors§