GmsDocumentScanner
Stay organized with collections
Save and categorize content based on your preferences.
A client to open a document scanner powered by Google Play services.
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\u003eGmsDocumentScanner\u003c/code\u003e provides a client interface to interact with a Google Play services-powered document scanner.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method, \u003ccode\u003egetStartScanIntent\u003c/code\u003e, launches a document scanning UI flow via an \u003ccode\u003eIntentSender\u003c/code\u003e, initiated from an \u003ccode\u003eActivity\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# GmsDocumentScanner\n\npublic interface **GmsDocumentScanner** extends [OptionalModuleApi](/android/reference/com/google/android/gms/common/api/OptionalModuleApi) \nA client to open a document scanner powered by Google Play services. \n\n### Public Method Summary\n\n|------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract Task\\\u003c[IntentSender](//developer.android.com/reference/android/content/IntentSender.html)\\\u003e | [getStartScanIntent](/android/reference/com/google/mlkit/vision/documentscanner/GmsDocumentScanner#getStartScanIntent(android.app.Activity))([Activity](//developer.android.com/reference/android/app/Activity.html) activity) Returns an [IntentSender](//developer.android.com/reference/android/content/IntentSender.html) for starting the document scanner UI flow. |\n\nPublic Methods\n--------------\n\n#### public abstract Task\\\u003c[IntentSender](//developer.android.com/reference/android/content/IntentSender.html)\\\u003e\n**getStartScanIntent** ([Activity](//developer.android.com/reference/android/app/Activity.html) activity)\n\nReturns an [IntentSender](//developer.android.com/reference/android/content/IntentSender.html)\nfor starting the document scanner UI flow."]]