connect

fun connect(device: UsbDevice): Boolean

Connect to the given UsbDevice by iterating through available interfaces and create a new MTP Session.

Iterating through the available interfaces until input and output endpoints are found.

of the given device to create a connection on the found input and output endpoints.

It also opens a new session to communicate with the connected camera devicce.

Return

true when the connection was successful, false otherwise.

Since

1.0.0

Parameters

device

The UsbDevice to communicate with.