GmsDocumentScanningResult

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

int CONTENTS_FILE_DESCRIPTOR
int PARCELABLE_WRITE_RETURN_VALUE

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

Object
clone()
boolean
equals(Object arg0)
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()
abstract int
describeContents()
abstract void
writeToParcel(Parcel arg0, int arg1)

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.