@u4/adbkit
    Preparing search index...

    Interface TrackerEvents

    enforce EventEmitter typing

    interface TrackerEvents {
        add: (device: Device) => void;
        change: (newDevice: Device, oldDevice: Device) => void;
        changeSet: (changeSet: TrackerChangeSet) => void;
        end: () => void;
        error: (data: Error) => void;
        offline: (device: Device) => void;
        online: (device: Device) => void;
        remove: (device: Device) => void;
    }
    Index
    add: (device: Device) => void

    (device) Emitted when a new device is connected, once per device. See client.listDevices() for details on the device object.

    change: (newDevice: Device, oldDevice: Device) => void

    (device) Emitted when the type property of a device changes, once per device. The current value of type is the new value. This event usually occurs the type changes from 'device' to 'offline' or the other way around. See client.listDevices() for details on the device object and the 'offline' type.

    changeSet: (changeSet: TrackerChangeSet) => void

    (changes) Emitted once for all changes reported by ADB in a single run. Multiple changes can occur when, for example, a USB hub is connected/unplugged and the device list changes quickly. If you wish to process all changes at once, use this event instead of the once-per-device ones. Keep in mind that the other events will still be emitted, though.

    end: () => void

    Emitted when the underlying connection ends.

    error: (data: Error) => void

    (err) Emitted if there's an error.

    offline: (device: Device) => void
    online: (device: Device) => void
    remove: (device: Device) => void

    (device) Emitted when a device is unplugged, once per device. This does not include offline devices, those devices are connected but unavailable to ADB. See client.listDevices() for details on the device object.