Skip to Content
このページの内容

deviceSupportFeatures

実行時の機能オブジェクトの .support を読み取り、オブジェクト自体の真偽値で判断しないでください。{ support: false } も JavaScript では truthy です。require は最小ファームウェアバージョンを示す場合があります。

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);

パラメーター

任意の共通パラメーター

例

const response = await HardwareSDK.deviceSupportFeatures(connectId);

結果

{ success: true, payload: { inputPinOnSoftware: { support: boolean, require?: string }, modifyHomescreen: { support: boolean, require?: string }, device: Device | null } }

エラー

{ success: false, payload: { error: string, // error message code?: string | number // error code } }
最終更新日