code: @Override
      public void onActivityDestroyed(Activity activity) {
          HMSAgentLog.d("onDestroyed:" + StrUtils.objDesc(activity));
          removeActivity(activity);
  
          // activity onDestroyed 事件回调 | Activity Ondestroyed Event Callback
          List<IActivityDestroyedCallback> tmdCallbacks = new ArrayList<IActivityDestroyedCallback>(destroyedCallbacks);
          for (IActivityDestroyedCallback callback : tmdCallbacks) {
              callback.onActivityDestroyed(activity, getLastActivityInner());
          }
      }
docs: activity onDestroyed 监听回调 | Activity Ondestroyed Listener Callback
  @param activity 发生 onDestroyed 事件的activity | Activity that occurs ondestroyed events