pub unsafe trait NSFileProviderIncrementalContentFetching: NSObjectProtocol {
// Provided method
unsafe fn fetchContentsForItemWithIdentifier_version_usingExistingContentsAtURL_existingVersion_request_completionHandler(
&self,
item_identifier: &NSFileProviderItemIdentifier,
requested_version: Option<&NSFileProviderItemVersion>,
existing_contents: &NSURL,
existing_version: &NSFileProviderItemVersion,
request: &NSFileProviderRequest,
completion_handler: &DynBlock<dyn Fn(*mut NSURL, *mut NSFileProviderItem, *mut NSError)>,
) -> Retained<NSProgress>
where Self: Sized + Message { ... }
}
Available on crate feature
NSFileProviderReplicatedExtension
only.Expand description
Protocol to implement if the provider instance supports fetching incremental content changes.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn fetchContentsForItemWithIdentifier_version_usingExistingContentsAtURL_existingVersion_request_completionHandler(
&self,
item_identifier: &NSFileProviderItemIdentifier,
requested_version: Option<&NSFileProviderItemVersion>,
existing_contents: &NSURL,
existing_version: &NSFileProviderItemVersion,
request: &NSFileProviderRequest,
completion_handler: &DynBlock<dyn Fn(*mut NSURL, *mut NSFileProviderItem, *mut NSError)>,
) -> Retained<NSProgress>
Available on crate features NSFileProviderItem
and NSFileProviderRequest
and block2
only.
unsafe fn fetchContentsForItemWithIdentifier_version_usingExistingContentsAtURL_existingVersion_request_completionHandler( &self, item_identifier: &NSFileProviderItemIdentifier, requested_version: Option<&NSFileProviderItemVersion>, existing_contents: &NSURL, existing_version: &NSFileProviderItemVersion, request: &NSFileProviderRequest, completion_handler: &DynBlock<dyn Fn(*mut NSURL, *mut NSFileProviderItem, *mut NSError)>, ) -> Retained<NSProgress>
NSFileProviderItem
and NSFileProviderRequest
and block2
only.Update a previously provided item to a new version.
If the system already has a version of an item and learns that a new version is available, it may call this method to update the existing version to a new version.
The semantics of the requestedVersion parameter are the same as for the non-delta update method above.