GmsBarcodeScanner
Stay organized with collections
Save and categorize content based on your preferences.
A client to open a code scanner powered by Google Play services.
Public Method Summary
abstract Task<Barcode> |
startScan()
Opens the code scanner view to scan barcode.
|
Public Methods
public abstract
Task<Barcode> startScan
()
Opens the code scanner view to scan barcode.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eGmsBarcodeScanner\u003c/code\u003e provides an interface for using Google Play services to scan barcodes within an Android app.\u003c/p\u003e\n"],["\u003cp\u003eThe primary function is \u003ccode\u003estartScan()\u003c/code\u003e, which initiates the barcode scanning process and returns a \u003ccode\u003eTask\u003c/code\u003e resolving to a \u003ccode\u003eBarcode\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# GmsBarcodeScanner\n\npublic interface **GmsBarcodeScanner** extends [OptionalModuleApi](/android/reference/com/google/android/gms/common/api/OptionalModuleApi) \nA client to open a code scanner powered by Google Play services. \n\n### Public Method Summary\n\n|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract Task\\\u003cBarcode\\\u003e | [startScan](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner#startScan())() Opens the code scanner view to scan barcode. |\n\nPublic Methods\n--------------\n\n#### public abstract Task\\\u003cBarcode\\\u003e **startScan**\n()\n\nOpens the code scanner view to scan barcode."]]