NSFileProviderKnownFolderSupporting

Trait NSFileProviderKnownFolderSupporting 

Source
pub unsafe trait NSFileProviderKnownFolderSupporting: NSObjectProtocol {
    // Provided method
    unsafe fn getKnownFolderLocations_completionHandler(
        &self,
        known_folders: NSFileProviderKnownFolders,
        completion_handler: &DynBlock<dyn Fn(*mut NSFileProviderKnownFolderLocations, *mut NSError)>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSFileProviderKnownFolders only.
Expand description

Provided Methods§

Source

unsafe fn getKnownFolderLocations_completionHandler( &self, known_folders: NSFileProviderKnownFolders, completion_handler: &DynBlock<dyn Fn(*mut NSFileProviderKnownFolderLocations, *mut NSError)>, )
where Self: Sized + Message,

Available on crate features NSFileProviderDomain and block2 only.

Request suitable locations for known folders.

This function is called when the user decides to switch some known folders to the current domain, outside of the claimKnownFolders call. The system provides a list of folders that the user decides to move to this domain, and expect in return non-nil locations for those known folders.

Trait Implementations§

Source§

impl ProtocolType for dyn NSFileProviderKnownFolderSupporting

Source§

const NAME: &'static str = "NSFileProviderKnownFolderSupporting"

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 NSFileProviderKnownFolderSupporting

Implementations on Foreign Types§

Source§

impl<T> NSFileProviderKnownFolderSupporting for ProtocolObject<T>

Implementors§