createPlanPresenter

fun createPlanPresenter(planLink: ExpoFpLinkType, additionalParams: List<ExpoFpPlanParameter> = emptyList(), locationProvider: IExpoFpLocationProvider? = globalLocationProvider, messageListener: IExpoFpPlanMessageListener? = null, isDebugModeEnabled: Boolean = false): IExpoFpPlanPresenter

Create a plan presenter.

Return

IExpoFpPlanPresenter to manage the plan.

Parameters

planLink

type of the link to load a plan.

additionalParams

parameters to configure the plan before presenting.

locationProvider

location provider to be used (defaults to globalLocationProvider).

messageListener

listener for messages from the plan. Note: the SDK does not retain it.

isDebugModeEnabled

Enables sending DEBUG messages via IExpoFpPlanMessageListener. When true, the presenter forwards JavaScript runtime errors and console output from the plan to:

Warning: Do not turn on Debug mode in production, it may slow down the plan initialization and response. Use only for debugging!

Throws

if initialize was not called before.