dispose

abstract fun dispose()

Dispose the presenter and release its plan.

Call it for a presenter created with isLifecycleAutoDisposeEnabled = false once the plan is no longer needed. A presenter with automatic disposal can also be disposed earlier with this method. After the call the plan is removed from every host returned by getView and the presenter cannot be used anymore. Repeated calls have no effect. Safe to call from any thread.

Has no effect for a preloaded plan: dispose it with ExpoFpPlanPreloader.disposePreloadedPlan.