Adds a data resource to the asset being created, using the file at the specified URL.
- iOS 9+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 10+
The role of this data resource in constructing an asset. For details, see
The URL to a local file containing data for the asset resource.
Options affecting how Photos constructs the asset resource and incorporates its data into the Photos library. For details, see
Resource Creation Options
Photos imports the asset resource data only when it executes the
PHPhoto change block in which you create a
PHAsset object and call this method. If you attempt to create an asset with invalid data or an invalid combination of resources, Photos reports an error in the completion handler of your