ApplePackCallbacks

What the app's Swift adapter (templates/ios/AssetDropAdapter.swift) reports for one call. Call one of onFinished, onFailed, onPending or onNotDownloaded to end it; anything after the first ending call is ignored. Plain methods rather than lambdas, so progress ticks box no numbers and nothing trips Swift 6's Sendable checks.

Functions

Link copied to clipboard
abstract fun onFailed(reason: PackFailure, detail: String?)
Link copied to clipboard
abstract fun onFinished()
Link copied to clipboard
abstract fun onNotDownloaded()

Status only: not on the device.

Link copied to clipboard
abstract fun onPending()

Status only: queued or paused by the system.

Link copied to clipboard
abstract fun onProgress(bytes: Long, total: Long)

Download progress; total is 0 when the system does not say.