Package com.microblink.blinkid.entities.recognizers.blinkid.generic

# Interface ClassFilter

All Superinterfaces:
  `android.os.Parcelable`

public interface ClassFilter extends android.os.Parcelable
Document filter that is used to determine which documents will be processed. If the document is filtered out by this filter, its data cannot be returned as recognition result.

- ## 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
  `boolean`
  `classFilter(ClassInfo classInfo)`
  Determines whether document should be processed or it is filtered out.

  ### Methods inherited from interface android.os.Parcelable

  `describeContents, writeToParcel`

- ## Method Details

  - ### classFilter

    @WorkerThread boolean classFilter(@NonNull ClassInfo classInfo)
    Determines whether document should be processed or it is filtered out.
    Parameters:
      `classInfo` - `ClassInfo` for document currently being evaluated. This object cannot be used outside of this method, it will be invalidated as soon as this filter method finishes. Please don't keep reference to classInfo parameter outside of this method.
    Returns:
      `true` if the document with the given `ClassInfo` should be processed, `false` if the document should be filtered out.