tianbo_reader_plugin 0.0.4 copy "tianbo_reader_plugin: ^0.0.4" to clipboard
tianbo_reader_plugin: ^0.0.4 copied to clipboard

PlatformAndroid

天波台式终端D2身份证读卡插件

tianbo_reader_plugin #

天波身份证读卡插件,测试设备为天波台式终端 D2,USB 读卡器。使用天波通用 SDK,理论上支持所有天波 USB 读卡设备。

使用说明 #

  1. 引入插件
dependencies:
  tianbo_reader_plugin: ^0.0.4
  1. 添加 USB 权限
<uses-feature android:name="android.hardware.usb.host" android:required="true"/>
  1. 修改最低 SDK 版本到 26,Flutter 默认为 21
defaultConfig {
    applicationId = "com.henghe.tianbo_plugin_example"
    minSdk = 26
    targetSdk = flutter.targetSdkVersion
    versionCode = flutter.versionCode
    versionName = flutter.versionName
}
  1. 调用读卡器
import 'package:tianbo_reader_plugin/tianbo_plugin.dart';

final _tianboPlugin = TianboPlugin();
//打开读卡器
_tianboPlugin.openReader();
//关闭读卡器
_tianboPlugin.closeReader();
//读卡器状态
_tianboPlugin.isOpen();
//读卡
_tianboPlugin.readCard();

1
likes
135
points
10
downloads

Publisher

unverified uploader

Weekly Downloads

天波台式终端D2身份证读卡插件

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on tianbo_reader_plugin

Packages that implement tianbo_reader_plugin