Là một dự án di động, hyperoslo/BarcodeScanner đã đạt 1.7k sao trên GitHub, ngôn ngữ Swift. :mag_right: A simple and beautiful barcode scanner.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Use BarcodeScannerDismissalDelegate to handle "Close button" tap.
Please note that BarcodeScannerViewController doesn't dismiss itself if
it was presented initially.
When the code is captured BarcodeScannerViewController switches to the processing
mode:
While the user sees a nice loading animation you can perform some
background task, for example make a network request to fetch product info based
on the code. When the task is done you have 3 options to proceed:
Dismiss BarcodeScannerViewController and show your results.
Show an error message and switch back to the scanning mode (for example,
when there is no product found with a given barcode in your database):
func scanner(_ controller: BarcodeScannerViewController, didCaptureCode code: String, type: String) {
// Code processing
controller.resetWithError(message: "Error message")
// If message is not provided the default message will be used instead.
}
Reset the controller to the scanning mode (with or without animation):
let viewController = BarcodeScannerViewController()
// Change focus view style
viewController.cameraViewController.barCodeFocusViewType = .animated
// Show camera position button
viewController.cameraViewController.showsCameraButton = true
// Set the initial camera position
viewController.cameraViewController.initialCameraPosition = .front // Default is .back
// Set settings button text
let title = NSAttributedString(
string: "Settings",
attributes: [.font: UIFont.boldSystemFont(ofSize: 17), .foregroundColor : UIColor.white]
)
viewController.cameraViewController.settingButton.setAttributedTitle(title, for: UIControlState())
Metadata
// Add extra metadata object type
let viewController = BarcodeScannerViewController()
viewController.metadata.append(AVMetadataObject.ObjectType.qr)
Installation
BarcodeScanner is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'BarcodeScanner'
Don't forget to set a Privacy - Camera Usage Description in your Info.plist file, else the app will crash with a SIGBART.
In order to quickly try the demo project of a BarcodeScanner just run
pod try BarcodeScanner in your terminal.
BarcodeScanner is also available through Carthage.
To install just write into your Cartfile:
github "hyperoslo/BarcodeScanner"
To install BarcodeScanner manually just download and drop Sources and
Images folders in your project.
hyperoslo/BarcodeScanner thuộc nhóm Mobile trên TopGit, cùng 5 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về hyperoslo/BarcodeScanner ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/hyperoslo/BarcodeScanner là nguồn chính thức.
hyperoslo/BarcodeScanner có bao nhiêu sao?
hyperoslo/BarcodeScanner có 1.7k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/hyperoslo/BarcodeScanner. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
hyperoslo/BarcodeScanner có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho hyperoslo/BarcodeScanner. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
hyperoslo/BarcodeScanner có trang demo không?
Dự án có trang chủ ở http://hyper.no. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
hyperoslo/BarcodeScanner là gì?
hyperoslo/BarcodeScanner (hyperoslo/BarcodeScanner) là dự án Swift trên GitHub. Theo mô tả gốc: :mag_right: A simple and beautiful barcode scanner.
hyperoslo/BarcodeScanner so với các dự án Mobile khác thế nào?
hyperoslo/BarcodeScanner được TopGit xếp vào nhóm Mobile, với 1.7k sao GitHub và viết bằng Swift. Xem trang chủ đề Mobile trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về BarcodeScanner?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về BarcodeScanner.