ExpoFpPlanDownloader

Loader for downloading and saving plans in the cache directory.

Important: You are responsible for deleting plans using removeDownloadedPlan or removeAllDownloadedPlans.

Functions

Link copied to clipboard

Download a plan from the internet and save it in the cache directory for later use.

Link copied to clipboard

Unzip and save a plan in the cache directory for later use.

Link copied to clipboard
fun getDownloadedPlansInfo(expoKey: String? = null, completion: (List<ExpoFpDownloadedPlanInfo>) -> Unit)

Get all saved plans from the cache directory (optionally filtered by expoKey).

Link copied to clipboard

Remove all saved plans from the cache directory.

Link copied to clipboard

Remove a specific saved plan from the cache directory.

Link copied to clipboard
suspend fun removeOldVersionsOfDownloadedPlans(expoKey: String? = null)

Remove old versions of saved plans (optionally filtered by expoKey) from the cache directory.