GmsDocumentScanningResult

  • GmsDocumentScanningResult is an abstract class that represents the result of document scanning.

  • It contains nested classes GmsDocumentScanningResult.Page and GmsDocumentScanningResult.Pdf which represent a page and the PDF in the scanning result, respectively.

  • The result can be retrieved from an Activity result intent using the static method fromActivityResultIntent.

  • The scanned pages can be obtained using getPages() if the JPEG format was specified, and the PDF result can be obtained using getPdf() if the PDF format was specified.

public abstract class GmsDocumentScanningResult extends Object
implements Parcelable

Result for document scanning.

Nested Class Summary

class GmsDocumentScanningResult.Page Represents a page in the scanning result. 
class GmsDocumentScanningResult.Pdf Represents the PDF in the scanning result. 

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

static GmsDocumentScanningResult
fromActivityResultIntent(Intent data)
Gets the GmsDocumentScanningResult from the scanning Activity result data.
abstract List<GmsDocumentScanningResult.Page>
getPages()
Returns the scanned pages or null if GmsDocumentScannerOptions.RESULT_FORMAT_JPEG was not specified when creating the scanner options.
abstract GmsDocumentScanningResult.Pdf
getPdf()
Returns the PDF result or null if GmsDocumentScannerOptions.RESULT_FORMAT_PDF was not specified when creating the scanner options.

Inherited Method Summary

Public Constructors

public GmsDocumentScanningResult ()

Public Methods

public static GmsDocumentScanningResult fromActivityResultIntent (Intent data)

Gets the GmsDocumentScanningResult from the scanning Activity result data.

Returns null if fails to extract or construct the result.

public abstract List<GmsDocumentScanningResult.Page> getPages ()

Returns the scanned pages or null if GmsDocumentScannerOptions.RESULT_FORMAT_JPEG was not specified when creating the scanner options.

public abstract GmsDocumentScanningResult.Pdf getPdf ()

Returns the PDF result or null if GmsDocumentScannerOptions.RESULT_FORMAT_PDF was not specified when creating the scanner options.