Interface SuccessfulImageListener

All Superinterfaces:
android.os.Parcelable

@WorkerThread public interface SuccessfulImageListener extends android.os.Parcelable
Callback that will be invoked when recognition process has successfully scanned an item and has a successful scan image to return. NOTE: After being de-parcelled, the instance of this interface's implementation lives in the context of activity that performed deparcelization - it is NOT the same instance as the original object that you sent.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called on processing thread when recognition process has successfully scanned an item and has a successful scan image to return Note that all buffers associated with image are available only during life of this method.

    Methods inherited from interface android.os.Parcelable

    describeContents, writeToParcel
  • Method Details

    • onSuccessfulImageAvailable

      void onSuccessfulImageAvailable(@NonNull Image image)
      Called on processing thread when recognition process has successfully scanned an item and has a successful scan image to return Note that all buffers associated with image are available only during life of this method. As soon as this method exits, there is no guarantee that buffers will be valid. If you need to store image for later processing, showing or saving, make sure you create a copy of it with Image.clone().
      Parameters:
      image - Image from the successful scan