GmsBarcodeScanner
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["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."]]