- All Superinterfaces:
public interface ClassFilter extends android.os.ParcelableDocument 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.
@WorkerThread boolean classFilter(@NonNull ClassInfo classInfo)Determines whether document should be processed or it is filtered out.
ClassInfofor 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.
trueif the document with the given
ClassInfoshould be processed,
falseif the document should be filtered out.