Interface AndroidSocket

AndroidSocket is a way to communicate with a process launched on the AndroidDevice. Use androidDevice.open(command) to open a socket.

Hierarchy

  • AndroidSocket

Methods

  • Emitted when the socket is closed.

    Parameters

    • event: "close"
    • listener: (() => any)
        • (): any
        • Returns any

    Returns AndroidSocket

  • Emitted when data is available to read from the socket.

    Parameters

    • event: "data"
    • listener: ((buffer) => any)
        • (buffer): any
        • Parameters

          • buffer: Buffer

          Returns any

    Returns AndroidSocket

  • Closes the socket.

    Returns Promise<void>

  • Removes an event listener added by on or addListener.

    Parameters

    • event: "close"
    • listener: (() => any)
        • (): any
        • Returns any

    Returns AndroidSocket

  • Removes an event listener added by on or addListener.

    Parameters

    • event: "data"
    • listener: ((buffer) => any)
        • (buffer): any
        • Parameters

          • buffer: Buffer

          Returns any

    Returns AndroidSocket

  • Emitted when the socket is closed.

    Parameters

    • event: "close"
    • listener: (() => any)
        • (): any
        • Returns any

    Returns AndroidSocket

  • Emitted when data is available to read from the socket.

    Parameters

    • event: "data"
    • listener: ((buffer) => any)
        • (buffer): any
        • Parameters

          • buffer: Buffer

          Returns any

    Returns AndroidSocket

  • Adds an event listener that will be automatically removed after it is triggered once. See addListener for more information about this event.

    Parameters

    • event: "close"
    • listener: (() => any)
        • (): any
        • Returns any

    Returns AndroidSocket

  • Adds an event listener that will be automatically removed after it is triggered once. See addListener for more information about this event.

    Parameters

    • event: "data"
    • listener: ((buffer) => any)
        • (buffer): any
        • Parameters

          • buffer: Buffer

          Returns any

    Returns AndroidSocket

  • Emitted when the socket is closed.

    Parameters

    • event: "close"
    • listener: (() => any)
        • (): any
        • Returns any

    Returns AndroidSocket

  • Emitted when data is available to read from the socket.

    Parameters

    • event: "data"
    • listener: ((buffer) => any)
        • (buffer): any
        • Parameters

          • buffer: Buffer

          Returns any

    Returns AndroidSocket

  • Removes an event listener added by on or addListener.

    Parameters

    • event: "close"
    • listener: (() => any)
        • (): any
        • Returns any

    Returns AndroidSocket

  • Removes an event listener added by on or addListener.

    Parameters

    • event: "data"
    • listener: ((buffer) => any)
        • (buffer): any
        • Parameters

          • buffer: Buffer

          Returns any

    Returns AndroidSocket

  • Writes some data to the socket.

    Parameters

    • data: Buffer

      Data to write.

    Returns Promise<void>

Generated using TypeDoc