Package: android.hardware.usb.gadget@1.0

IUsbGadgetCallback

interface IUsbGadgetCallback

Methods

setCurrentUsbFunctionsCb

oneway setCurrentUsbFunctionsCb (bitfield<GadgetFunction> functions, Status status)

Callback function used to propagate the status of configuration switch to the caller.

Details
RPC mode
oneway
Parameters
functions
list of functions defined by GadgetFunction included in the current USB gadget composition.
status
SUCCESS when the functions are applied.FUNCTIONS_NOT_SUPPORTED when the configuration is not supported.ERROR otherwise.

getCurrentUsbFunctionsCb

oneway getCurrentUsbFunctionsCb (bitfield<GadgetFunction> functions, Status status)

Callback function used to propagate the current USB gadget configuration.

Details
RPC mode
oneway
Parameters
functions
list of functions defined by GadgetFunction included in the current USB gadget composition.
status
FUNCTIONS_APPLIED when list of functions have been applied.FUNCTIONS_NOT_APPLIED when the functions have not been applied.ERROR otherwise.