pair static method

Future<bool> pair(
  1. String ip,
  2. int port,
  3. String pairingCode,
  4. AdbCrypto crypto, {
  5. bool verbose = false,
})

Pair with an Android device using the wireless debugging pairing code.

Implementation

static Future<bool> pair(
  String ip,
  int port,
  String pairingCode,
  AdbCrypto crypto, {
  bool verbose = false,
}) async {
  final result = await _pairAtEndpoint(
    ip,
    port,
    pairingCode,
    crypto,
    verbose: verbose,
    pairingEndpoint: AdbPairingEndpoint(host: ip, port: port),
  );
  return result.success;
}