Lifecycle states the agent posts, as the app sees them (resumed, inactive, ...).
resumed
inactive
Stream<String> get lifecycle => runtime.extensionEvents .where((e) => e.extensionKind == kAgentLifecycleEvent) .map((e) => '${e.extensionData?.data['state']}');