Expo Fp Plan
object ExpoFpPlan
Entry point to ExpoFP functionality.
Use this object to create, preload, or download a plan, and to configure a global location provider.
Initialization
You must call initialize before using downloader, preloader, or createPlanPresenter. This can be done in:
Application.onCreate()
— recommended for most apps.Activity/Fragment — just before the first usage.
Example in Application:
class App : Application() {
override fun onCreate() {
super.onCreate()
ExpoFpPlan.initialize(this)
}
}
Content copied to clipboard
Example just-in-time in Activity:
ExpoFpPlan.initialize(applicationContext)
val presenter = ExpoFpPlan.createPlanPresenter(
planLink = ExpoFpLinkType.ExpoKey("YourExpoKey")
)
Content copied to clipboard
Properties
Functions
Link copied to clipboard
fun createPlanPresenter(planLink: ExpoFpLinkType, additionalParams: List<ExpoFpPlanParameter> = emptyList(), locationProvider: IExpoFpLocationProvider? = globalLocationProvider, messageListener: IExpoFpPlanMessageListener? = null, isDebugModeEnabled: Boolean = false): IExpoFpPlanPresenter
Create a plan presenter.
Link copied to clipboard
Initialize the SDK with any Context.