Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

io.github.clistery:camerax-scanner-qrcode

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

io.github.clistery:camerax-scanner-qrcode

ZXing QR code package library implemented by CameraX

  • 1.1.4
  • Source
  • Maven
  • Socket score

Version published
Maintainers
1
Source

CameraX-QRcode

ZXing QR code package library implemented by CameraX

Feature

  • Simple to use
  • Auto focus camera, improve decoding speed
  • When scanning and decoding is successful, it will automatically stop scanning
  • No need to consider camera destruction related actions

Download

implementation 'io.github.clistery:camerax-scanner-qrcode:1.1.2'

USE

  • in xml

    <com.yh.cxqr.QRScannerView
        android:id="@+id/scanner"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    
  • start scan

    beginScan()
    
  • end scan

    stopScan()
    
  • register scan result callback

    resultCallback = object : QRScannerView.IScanResultCallback {
        override fun onCallback(result: Barcode) {
        }
    }
    
  • on/off flash

    switchFlash()
    
  • decode ImageProxy

    QRCodeParser().decodeImageProxy(imageProxy, success, fail)
    
  • decode image uri

    QRCodeParser().decodeImageUri(context, fileUri, success, fail)
    
  • decode bitmap

    QRCodeParser().decodeBitmap(originBitmap, success, fail)
    

FAQs

Package last updated on 21 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc