gh-pages / com.nextfaze.devfun.core / DevFun / initialize

initialize

fun initialize(context: Context, vararg modules: DevFunModule, useServiceLoader: Boolean = true): Unit (source)

Initialize the static devFun reference to this, context to Context.getApplicationContext, build instanceProviders, call module’s DevFunModule.initialize, and calls any initializationCallbacks.

Can be called any number of times (will no-op more than once).

If using more than one DevFun instance, dispose should be called.