appPid method

Future<int?> appPid(
  1. String udid,
  2. String bundleId
)

The process id of bundleId on udid, null when it is not running or launchctl cannot be asked.

Implementation

Future<int?> appPid(String udid, String bundleId) async => (await _launchEntry(udid, bundleId))?.pid;