assets property

Map<String, File?> assets
final

Files carried as CloudKit assets, keyed by field name.

A received asset file belongs to CloudKit. It stays readable only until the call that delivered it completes, so copy what you need to keep. A received value is null when the server has an asset in that field but CloudKit did not download it, as in the serverRecord of a CloudKitItemError.

A record being saved must give a file for every asset, and the file must stay in place until the save is reported.

Implementation

final Map<String, File?> assets;