Package 

Object LifecycleManager


  • 
    public class LifecycleManager
    
                        

    LifecycleManager对象负责注册应用程序的生命周期回调。 它使用内部的ActivityLifecycleCallbacks来监听和响应Activity的生命周期事件。

    • Method Summary

      Modifier and Type Method Description
      final Unit register(Application application, IAppStatusService mService) 注册应用程序状态服务,以便接收生命周期事件的通知。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • register

         final Unit register(Application application, IAppStatusService mService)

        注册应用程序状态服务,以便接收生命周期事件的通知。

        Parameters:
        mService - 实现IAppStatusService接口的应用程序服务。