ApplePackStore

The app's Swift adapter over the AssetDropKit Swift package (Apple-hosted packs on iOS 26+, On-Demand Resources on iOS 17 and 18). The app framework re-exports this library (export("com.vocabloot:assetdropkit")) so Swift sees these names.

Functions

Link copied to clipboard
abstract fun fetch(packId: String, callbacks: ApplePackCallbacks): PackCancel

Starts or resumes the download, reporting through callbacks until it ends.

Link copied to clipboard
abstract fun readBytes(packId: String, path: String): NSData?

A file of a ready pack, path inside the pack; null when missing.

Link copied to clipboard
abstract fun remove(packId: String, callbacks: ApplePackCallbacks)

Lets the system free the pack; call onFinished once it is gone, so a following fetch cannot overtake it.

Link copied to clipboard
abstract fun status(packId: String, callbacks: ApplePackCallbacks)

Reports the pack's state on the device once: finished (ready), pending, not downloaded or failed.