Variable AdbConst

Adb: {
    createClient: ((options?: AdbOptions) => Client);
    util: typeof Utils;
} = ...

Keep @u4/adbkit v3.x old adb export

Type declaration

  • createClient: ((options?: AdbOptions) => Client)
      • (options?: AdbOptions): Client
      • Creates a client instance with the provided options. Note that this will not automatically establish a connection, it will only be done when necessary.

        Returns

        The client instance.

        Example

        Function you should import and call first

        import { createClient } fronm @u4/adbkit

        const client = createClient();

        Parameters

        • options: AdbOptions = ...

          An object compatible with [Net.connect][net-connect]'s options: port The port where the ADB server is listening. Defaults to 5037. host The host of the ADB server. Defaults to '127.0.0.1'. bin As the sole exception, this option provides the path to the adb binary, used for starting the server locally if initial connection fails. Defaults to 'adb'.

        Returns Client

  • util: typeof Utils

Generated using TypeDoc