Skip to main content

NSFileProviderCustomAction

Trait NSFileProviderCustomAction 

Source
pub unsafe trait NSFileProviderCustomAction: NSObjectProtocol {
    // Provided method
    unsafe fn performActionWithIdentifier_onItemsWithIdentifiers_completionHandler(
        &self,
        action_identifier: &NSFileProviderExtensionActionIdentifier,
        item_identifiers: &NSArray<NSFileProviderItemIdentifier>,
        completion_handler: &DynBlock<dyn Fn(*mut NSError)>,
    ) -> Retained<NSProgress>
       where Self: Sized + Message { ... }
}
Available on crate feature NSFileProviderReplicatedExtension only.
Expand description

Provided Methods§

Source

unsafe fn performActionWithIdentifier_onItemsWithIdentifiers_completionHandler( &self, action_identifier: &NSFileProviderExtensionActionIdentifier, item_identifiers: &NSArray<NSFileProviderItemIdentifier>, completion_handler: &DynBlock<dyn Fn(*mut NSError)>, ) -> Retained<NSProgress>
where Self: Sized + Message,

Available on crate features block2 and NSFileProviderActions and NSFileProviderItem only.

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.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSFileProviderCustomAction

Source§

impl ProtocolType for dyn NSFileProviderCustomAction

Source§

const NAME: &'static str = "NSFileProviderCustomAction"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSFileProviderCustomAction for ProtocolObject<T>

Implementors§