initialize

fun initialize(context: Context)

Initialize the SDK with any Context.

The given context is automatically converted to Context.getApplicationContext, so you can safely pass an Activity, Service, or Application instance.

This method must be called before using downloader, preloader, or createPlanPresenter. Calling it multiple times is safe; only the first call takes effect.

Example:

// In Application.onCreate()
ExpoFpPlan.initialize(this)

// Or before first use in Activity/Fragment
ExpoFpPlan.initialize(applicationContext)