共用方式為


getBarcode值

叫用裝置相機來掃描條碼資訊,例如產品編號。

適用於

模型導向 (行動用戶端) 和畫布應用程式 (行動用戶端)

語法

context.device.getBarcodeValue()

傳回值

類型: Promise<string>

應許

Exceptions

請參閱 Web 服務錯誤碼

裝置
Power Apps 元件架構 API 參考
Power Apps 元件架構概觀