Expo Fp Plan Preloader
object ExpoFpPlanPreloader
Loader for preloading plans.
Important: You are responsible for disposing preloaded plans using disposePreloadedPlan or removeAllPreloadedPlans.
Preload a plan from the internet:
val expoKey = "YourExpoKey"
val preloadedInfo = ExpoFpPlanPreloader.preloadPlan(
planLink = ExpoFpLinkType.ExpoKey(expoKey)
)
Content copied to clipboard
Preload from a downloaded plan:
val preloadedInfo = ExpoFpPlanPreloader.preloadPlan(
planLink = ExpoFpLinkType.DownloadedPlanInfo(downloadedPlanInfo)
)
Content copied to clipboard
Get a preloaded presenter:
val presenter = ExpoFpPlanPreloader.getPreloadedPlanPresenter(preloadedInfo)
Content copied to clipboard
If you have only one preloaded plan, you can get the presenter by:
val presenter = ExpoFpPlanPreloader.getPreloadedPlanPresenter()
Content copied to clipboard
Functions
Link copied to clipboard
Removes and returns a preloaded plan.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun preloadPlan(planLink: ExpoFpLinkType, additionalParams: List<URLQueryItem> = emptyList(), locationProvider: IExpoFpLocationProvider? = ExpoFpPlan.globalLocationProvider, messageListener: IExpoFpPlanMessageListener? = null): ExpoFpPreloadedPlanInfo
Preload a plan and store it for later use.
Link copied to clipboard
Removes all preloaded plans.