Interface: AndroidInterface

api/hardware/framework/vs/AndroidInterface.AndroidInterface

Methods

deviceClaimInterface

deviceClaimInterface(vendorId, interfaceNumber, force): string

Parameters

Name

Type

vendorId

number

interfaceNumber

number

force

boolean

Returns

string


deviceClose

deviceClose(vendorId): string

Parameters

Name

Type

vendorId

number

Returns

string


deviceControlTransferIn

deviceControlTransferIn(vendorId, requestType, recipient, request, value, index, length, timeout): string

Parameters

Name

Type

vendorId

number

requestType

string

recipient

string

request

number

value

number

index

number

length

number

timeout

number

Returns

string


deviceControlTransferOut

deviceControlTransferOut(vendorId, requestType, recipient, request, value, index, data, timeout): string

Parameters

Name

Type

vendorId

number

requestType

string

recipient

string

request

number

value

number

index

number

data

string

timeout

number

Returns

string


deviceGetInterfaces

deviceGetInterfaces(vendorId): string

Parameters

Name

Type

vendorId

number

Returns

string


deviceOpen

deviceOpen(vendorId): string

Parameters

Name

Type

vendorId

number

Returns

string


deviceTransferIn

deviceTransferIn(vendorId, endpointNumber, length, timeoutMs): string

Parameters

Name

Type

vendorId

number

endpointNumber

number

length

number

timeoutMs

number

Returns

string


deviceTransferOut

deviceTransferOut(vendorId, endpointNumber, data, timeoutMs): string

Parameters

Name

Type

vendorId

number

endpointNumber

number

data

string

timeoutMs

number

Returns

string


getDeviceList

getDeviceList(): string

Returns

string


hasPermission

hasPermission(productId, vendorId, serialNumber): boolean

Parameters

Name

Type

productId

number

vendorId

number

serialNumber

string

Returns

boolean


requestPermission

requestPermission(deviceFilterJson): string

Parameters

Name

Type

deviceFilterJson

string

Returns

string


toast

toast(): void

Returns

void