connect_device_async


Description:

public async bool connect_device_async (UsbDevice device, Cancellable? cancellable) throws Error

Asynchronously connects the device.

When completed, callback will be called. Then it is possible to call connect_device_async.end to get the result of the operation.

Parameters:

this

a UsbDeviceManager.

device

a UsbDevice to redirect

cancellable

optional Cancellable object, null to ignore

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function




2022 vala-language.org