java.lang.Object
com.microblink.photopay.intent.BaseIntentTransferable<FieldByFieldBundle>
com.microblink.photopay.entities.parsers.config.fieldbyfield.FieldByFieldBundle
All Implemented Interfaces:
android.os.Parcelable, com.microblink.photopay.intent.MBIntentTransferable

public final class FieldByFieldBundle extends com.microblink.photopay.intent.BaseIntentTransferable<FieldByFieldBundle>
Represents a bundle of FieldByFieldElement objects that can travel via Intent. Used inside FieldByFieldUISettings which is used by FieldByFieldOverlayController and FieldByFieldScanActivity.
  • 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
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<FieldByFieldBundle>
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Constructor
    Description
    FieldByFieldBundle(FieldByFieldElement... fieldByFieldElements)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Consumes content from object loaded from intent.
    protected android.os.Parcelable.Creator<FieldByFieldBundle>
    Returns parcelable creator for concrete intent transferable type.
    Returns the array of field by field scan elements associated with this bundle.
    protected String
    Returns intent extra that will be used for transferring object unique ID.
    protected void
    readFromParcel(android.os.Parcel in)
     
    void
    saveToIntent(android.content.Intent intent)
    Saves this BaseIntentTransferable to Intent so it can be passed to another Activity.
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class com.microblink.photopay.intent.BaseIntentTransferable

    clearSavedState, describeContents, existsInIntent, loadFromIntent, saveState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CREATOR

      @NonNull public static final android.os.Parcelable.Creator<FieldByFieldBundle> CREATOR
  • Constructor Details

    • FieldByFieldBundle

      public FieldByFieldBundle(@NonNull FieldByFieldElement... fieldByFieldElements)
  • Method Details

    • getElements

      @NonNull public FieldByFieldElement[] getElements()
      Returns the array of field by field scan elements associated with this bundle.
      Returns:
      the array of field by field scan elements associated with this bundle.
    • getUniqueIdIntentExtraKey

      @NonNull protected String getUniqueIdIntentExtraKey()
      Description copied from class: com.microblink.photopay.intent.BaseIntentTransferable
      Returns intent extra that will be used for transferring object unique ID. Different concrete classes cannot use the same intent extra key for this purpose because that will make sending objects from different concrete classes over the same intent impossible.
      Specified by:
      getUniqueIdIntentExtraKey in class com.microblink.photopay.intent.BaseIntentTransferable<FieldByFieldBundle>
      Returns:
      intent extra that will be used for transferring object unique ID.
    • getConcreteCreator

      @NonNull protected android.os.Parcelable.Creator<FieldByFieldBundle> getConcreteCreator()
      Description copied from class: com.microblink.photopay.intent.BaseIntentTransferable
      Returns parcelable creator for concrete intent transferable type.
      Specified by:
      getConcreteCreator in class com.microblink.photopay.intent.BaseIntentTransferable<FieldByFieldBundle>
      Returns:
      parcelable creator for concrete intent transferable type.
    • consumeContentFromLoadedObject

      protected void consumeContentFromLoadedObject(@NonNull FieldByFieldBundle loadedBundle)
      Description copied from class: com.microblink.photopay.intent.BaseIntentTransferable
      Consumes content from object loaded from intent.
      Specified by:
      consumeContentFromLoadedObject in class com.microblink.photopay.intent.BaseIntentTransferable<FieldByFieldBundle>
    • saveToIntent

      public void saveToIntent(@NonNull android.content.Intent intent)
      Description copied from class: com.microblink.photopay.intent.BaseIntentTransferable
      Saves this BaseIntentTransferable to Intent so it can be passed to another Activity.
      Specified by:
      saveToIntent in interface com.microblink.photopay.intent.MBIntentTransferable
      Overrides:
      saveToIntent in class com.microblink.photopay.intent.BaseIntentTransferable<FieldByFieldBundle>
      Parameters:
      intent - Intent to which BaseIntentTransferable should be saved.
    • readFromParcel

      protected void readFromParcel(@NonNull android.os.Parcel in)
      Overrides:
      readFromParcel in class com.microblink.photopay.intent.BaseIntentTransferable<FieldByFieldBundle>
    • writeToParcel

      public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
      Overrides:
      writeToParcel in class com.microblink.photopay.intent.BaseIntentTransferable<FieldByFieldBundle>