fun LifecycleOwner.autoDisposeGraph(disposeEvent: Event = Event.ON_DESTROY): Unit
Automatically call WinterInjection.disposeGraph with this when disposeEvent is emitted by androidx.lifecycle.Lifecycle.
This will use WinterAware.injection if the LifecycleOwner implements WinterAware otherwise it will fallback to the default implementation Injection.
disposeEvent
- The Event that will dispose the graph.