Platforms to show: All Mac Windows Linux Cross-Platform

Back to PHAssetResourceCreationOptionsMBS class.

PHAssetResourceCreationOptionsMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The internal object reference.

(Read and Write property)

PHAssetResourceCreationOptionsMBS.originalFilename as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The filename for the asset resource being created.

You can use this property to track the original name of the file from which you import an asset resource even if you use the addResourceWithType method to create a resource from data instead of from a file. After creating the asset, this information is available in the originalFilename property of the corresponding PHAssetResourceMBS object.

If you do not specify a value for this property and are using the addResourceWithType method to create a resource, Photos infers the filename from that method’s fileURL parameter. Otherwise, Photos automatically generates a filename.
(Read and Write property)

PHAssetResourceCreationOptionsMBS.shouldMoveFile as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A Boolean value that determines whether Photos moves or duplicates files when creating an asset resource.

This property applies only when creating an asset resource with the addResourceWithType method. If this value is true, Photos moves the specified file into the Photos library to create the asset resource, removing the original file after the asset has been successfully created. When using this option, Photos does not make an intermediary copy of the resource data, so no additional storage space is required.

If this value is false (the default), Photos copies the contents of the original file into the Photos library.

Attempting to move a file that is currently open or has hard links fails.
(Read and Write property)

PHAssetResourceCreationOptionsMBS.uniformTypeIdentifier as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Photos MBS Mac64bit Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The uniform type identifier for the resource.

If you do not specify a value for this property, Photos infers the data type from the type value you specify when adding the resource to a creation request.
For details in uniform type identifiers, see Uniform Type Identifiers Overview.
(Read and Write property)

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


The biggest plugin in space...