Interface: AndroidInterface¶
api/hardware/framework/vs/AndroidInterface.AndroidInterface
Methods¶
deviceClaimInterface¶
deviceClaimInterface(vendorId
, interfaceNumber
, force
): string
Parameters¶
Name |
Type |
---|---|
|
|
|
|
|
|
Returns¶
string
deviceClose¶
deviceClose(vendorId
): string
Parameters¶
Name |
Type |
---|---|
|
|
Returns¶
string
deviceControlTransferIn¶
deviceControlTransferIn(vendorId
, requestType
, recipient
, request
, value
, index
, length
, timeout
): string
Parameters¶
Name |
Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns¶
string
deviceControlTransferOut¶
deviceControlTransferOut(vendorId
, requestType
, recipient
, request
, value
, index
, data
, timeout
): string
Parameters¶
Name |
Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns¶
string
deviceGetInterfaces¶
deviceGetInterfaces(vendorId
): string
Parameters¶
Name |
Type |
---|---|
|
|
Returns¶
string
deviceOpen¶
deviceOpen(vendorId
): string
Parameters¶
Name |
Type |
---|---|
|
|
Returns¶
string
deviceTransferIn¶
deviceTransferIn(vendorId
, endpointNumber
, length
, timeoutMs
): string
Parameters¶
Name |
Type |
---|---|
|
|
|
|
|
|
|
|
Returns¶
string
deviceTransferOut¶
deviceTransferOut(vendorId
, endpointNumber
, data
, timeoutMs
): string
Parameters¶
Name |
Type |
---|---|
|
|
|
|
|
|
|
|
Returns¶
string
getDeviceList¶
getDeviceList(): string
Returns¶
string
hasPermission¶
hasPermission(productId
, vendorId
, serialNumber
): boolean
Parameters¶
Name |
Type |
---|---|
|
|
|
|
|
|
Returns¶
boolean
requestPermission¶
requestPermission(deviceFilterJson
): string
Parameters¶
Name |
Type |
---|---|
|
|
Returns¶
string
toast¶
toast(): void
Returns¶
void