LifecycleLauncherExt extension

on
  • ILifecycle

Methods

withLifecycleEffect<T extends Object>({T? data, T factory()?, Launcher<T>? launchOnFirstCreate, Launcher<T>? launchOnFirstStart, Launcher<T>? launchOnFirstResume, Launcher<T>? repeatOnStarted, Launcher<T>? repeatOnResumed, Launcher<T>? launchOnDestroy}) → T

Available on ILifecycle, provided by the LifecycleLauncherExt extension

直接使用生命周期对类对象进行操作