startAdb method

  1. @override
Future<PrivServerInfo> startAdb({
  1. PrivAdbConnectionOptions? options,
  2. int? timeoutMillis,
  3. String? adbDeviceName,
  4. String? operationId,
})
override

Starts the Privileged Server through ADB.

When options carries a non-null port, the static TCP/IP port is used and the Wireless Debugging connect port is not discovered.

Implementation

@override
Future<PrivServerInfo> startAdb({
  PrivAdbConnectionOptions? options,
  int? timeoutMillis,
  String? adbDeviceName,
  String? operationId,
}) async => PrivServerInfo.fromMap(
  await _requireMap('startAdb', <String, Object?>{
    'options': options?.toMap(),
    'timeoutMillis': timeoutMillis,
    'adbDeviceName': adbDeviceName,
    'operationId': operationId,
  }),
);