Package: android.hardware.usb@1.1

IUsbCallback

interface IUsbCallback extends @1.0::IUsbCallback

Callback object used for all the IUsb async methods which expects a result.Caller is expected to register the callback object using setCallback method to receive updates on the PortStatus.

Methods

notifyPortStatusChange_1_1

oneway notifyPortStatusChange_1_1 (vec<PortStatus_1_1> currentPortStatus, Status retval)

Used to convey the current port status to the caller.Must be called either when PortState changes due to the port partner or when caller requested for the PortStatus update through queryPortStatus.

Details
RPC mode
oneway
Parameters
currentPortStatus
vector object of current status(PortStatus_1_1 of all the typeC ports in the device.
retval
SUCCESS when the required information was enquired form kernel and the PortStatus_1_1 object was built.ERROR otherwise.