Skip to content

zxinglite 精减版的扫码库 只有扫码,没有其他定制

License

Notifications You must be signed in to change notification settings

yingLanNull/ZxingLite

Repository files navigation

ZxingLite

Abstract 摘要

一款精减版的扫码控件 没有其他定制的轻量级扫码库

Screenshots 截图

1 2 3

Demo 下载APK体验

Download Demo

Usage 使用方法

Step 1

Gradle 配置

dependencies {
    compile 'com.yingyan.zxinglite:zxing-lib:1.0.2'
}

Step 2

In Java Code

	step1

	    Intent intent = new Intent();
        intent.setClass(MainActivity.this, CaptureActivity.class);
        startActivityForResult(intent, REQUEST_CODE);

    step2
    
        @Override
            protected void onActivityResult(int requestCode, int resultCode, Intent data) {
                super.onActivityResult(requestCode, resultCode, data);
                if (null != data && requestCode == REQUEST_CODE) {
                    Bundle bundle = data.getExtras();
                    String scanResult = bundle.getString(Intents.Scan.RESULT);
                }
            }

LICENSE 开源协议

Apache License Version 2.0

About

zxinglite 精减版的扫码库 只有扫码,没有其他定制

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages