@camera.ui/sdk / manager / DownloadCleanup
Type Alias: DownloadCleanup
DownloadCleanup =
"never"|"on-expiry"|"on-download"
Defined in: manager/index.ts:200
When the file on disk gets deleted. Registry entry always expires at TTL — this only controls the file itself.
- 'never' (default): file persists; caller manages it.
- 'on-expiry': file deleted at TTL. Can be fetched N times during the window — correct mode for notification images that fan out to multiple devices/recipients.
- 'on-download': file deleted after first successful download OR on TTL, whichever first. One-shot mode for things like backup exports.