On this page
deviceSupportFeatures
Check runtime capability objects. Read .support, not the truthiness of the object; { support: false } is still a truthy JavaScript value. require may identify a minimum firmware version.
const result = await HardwareSDK.deviceSupportFeatures(connectId);
if (!result.success) throw new Error(result.payload.error);
const canEnterPinOnHost = result.payload.inputPinOnSoftware.support;const response = await HardwareSDK.deviceSupportFeatures(connectId);Params
Example
const response = await HardwareSDK.deviceSupportFeatures(connectId);Result
{
success: true,
payload: {
inputPinOnSoftware: { support: boolean, require?: string },
modifyHomescreen: { support: boolean, require?: string },
device: Device | null
}
}Error
{
success: false,
payload: {
error: string, // error message
code?: string | number // error code
}
}Last updated on