isAppRunning method

Future<bool?> isAppRunning(
  1. String udid,
  2. String bundleId
)

Whether bundleId has a live process on udid; null when launchctl cannot be asked within probeLimit.

Implementation

Future<bool?> isAppRunning(String udid, String bundleId) async {
  final entry = await _launchEntry(udid, bundleId);
  return entry == null ? null : entry.pid != null;
}