GmsBarcodeScanning
Stay organized with collections
Save and categorize content based on your preferences.
Entry point to get a GmsBarcodeScanner
for opening a code scanner powered by Google Play services.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
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\u003eGmsBarcodeScanning\u003c/code\u003e is the entry point for accessing a Google Play services-powered barcode scanner.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to create a \u003ccode\u003eGmsBarcodeScanner\u003c/code\u003e instance with custom or default options.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetClient\u003c/code\u003e methods are used to obtain an instance of the barcode scanner.\u003c/p\u003e\n"],["\u003cp\u003eThe scanner is intended for use with Android applications.\u003c/p\u003e\n"]]],[],null,["# GmsBarcodeScanning\n\npublic final class **GmsBarcodeScanning** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nEntry point to get a [GmsBarcodeScanner](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner)\nfor opening a code scanner powered by Google Play services. \n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [GmsBarcodeScanner](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner) | [getClient](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanning#getClient(android.content.Context,%20com.google.mlkit.vision.codescanner.GmsBarcodeScannerOptions))([Context](//developer.android.com/reference/android/content/Context.html) context, [GmsBarcodeScannerOptions](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScannerOptions) options) Creates a new instance of [GmsBarcodeScanner](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner) with the specified options. |\n| static [GmsBarcodeScanner](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner) | [getClient](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanning#getClient(android.content.Context))([Context](//developer.android.com/reference/android/content/Context.html) context) Creates a new instance of [GmsBarcodeScanner](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner) with the default options. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static [GmsBarcodeScanner](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner)\n**getClient** ([Context](//developer.android.com/reference/android/content/Context.html) context, [GmsBarcodeScannerOptions](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScannerOptions) options)\n\nCreates a new instance of [GmsBarcodeScanner](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner)\nwith the specified options. \n\n#### public static [GmsBarcodeScanner](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner)\n**getClient** ([Context](//developer.android.com/reference/android/content/Context.html) context)\n\nCreates a new instance of [GmsBarcodeScanner](/android/reference/com/google/mlkit/vision/codescanner/GmsBarcodeScanner)\nwith the default options."]]