nfcRead.d.ts 725 B

123456789101112131415161718192021222324
  1. /**
  2. * nfc读取接口 请求参数定义
  3. * @apiName device.nfc.nfcRead
  4. */
  5. export interface IDeviceNfcNfcReadParams {
  6. }
  7. /**
  8. * nfc读取接口 返回结果定义
  9. * @apiName device.nfc.nfcRead
  10. */
  11. export interface IDeviceNfcNfcReadResult {
  12. /** NFC芯片的内容 */
  13. content: string;
  14. }
  15. /**
  16. * nfc读取接口
  17. * 只支持有nfc功能的android手机
  18. * 支持NDEF的数据交换格式
  19. * 使用方法:首先调用此jsapi,然后再把芯片放上去,即可读取,jspai调用一次读取一次信息
  20. * @apiName device.nfc.nfcRead
  21. * @supportVersion ios: 2.11.0 android: 2.11.0
  22. */
  23. export declare function nfcRead$(params: IDeviceNfcNfcReadParams): Promise<IDeviceNfcNfcReadResult>;
  24. export default nfcRead$;