Skip to content

@camera.ui/sdk / manager / DownloadCleanup

Type Alias: DownloadCleanup

DownloadCleanup = "never" | "on-expiry" | "on-download"

Defined in: manager/index.ts:248

When the file on disk gets deleted. The 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, the right mode for notification images that fan out to multiple devices or recipients.
  • 'on-download': file deleted after first successful download OR on TTL, whichever first. One-shot mode for things like backup exports.