Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHAssetMBS class.

PHAssetMBS.cancelContentEditingInputRequest(requestID as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Cancels a request for editing the asset’s content.

requestID: The numeric identifier of the request to be canceled.

When you request asset editing information with the requestContentEditingInputWithOptions method, the asset returns a numeric identifier for the request. To cancel the request before it completes, provide this identifier when calling the cancelContentEditingInputRequest method.

PHAssetMBS.canPerformEditOperation(editOperation as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns whether the asset supports the specified editing operation.

editOperation: The operation to be tested.

Returns true if the asset supports the the specified editing operation; otherwise, false.

If an asset supports editing, you can create a PHAssetChangeRequestMBS object inside a PHPhotoLibraryMBS change block to submit a change.

PHAssetMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The private constructor.

PHAssetMBS.requestContentEditingInputWithOptions(options as PHContentEditingInputRequestOptionsMBS, CompletionDelegate as RequestContentEditingInputWithOptionsCompletedMBS, tag as variant = nil) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Requests asset information for beginning a content editing session.

options: Options affecting how Photos handles an edit session request.

Returns a numeric identifier for the request. Pass this identifier to the cancelContentEditingInputRequest method if you need to cancel the request before it completes.

When you call this method, Photos downloads the asset’s image or video data (if necessary) and prepares it for editing, then calls your completionHandler ddelegate to provide a PHContentEditingInputMBS object you use for editing.

To complete the edit, create a PHContentEditingOutputMBS object from the editing input to provide the edited asset data. Then, commit the edit by posting a change block to the shared PHPhotoLibrary object. In the block, create a PHAssetChangeRequestMBS object and set its contentEditingOutput property to the editing output you created.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...