preloadPlan

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.

Note: IExpoFpPlanMessageListener is not retained by the SDK.

Return

ExpoFpPreloadedPlanInfo describing the preloaded plan.

Parameters

planLink

Type of the link to load a plan.

additionalParams

Parameters to set up a plan before presenting.

locationProvider

Location provider that will be used. If null, ExpoFpPlan.globalLocationProvider may be used by default.

messageListener

Listener for receiving messages from the plan.

messageHandlers

Optional map of message handlers.