How to enable the AR Model for Match Filter

matchFilter
We added a flexible result filtering mechanism that lets integrators control which decoded results are returned. The filter supports exact string matching, regex-based matching (including regex flags such as case-insensitive mode), and multi-token input. Each decoded result now carries an explicit match state (isMatched), and behavior is controlled through returnOnlyMatchedResults: when enabled, only matching results are returned; when disabled, non-matching results can still be returned but are clearly marked as unmatched.

Here are the steps to enable the AR Model for Match Filter.

                guard let config = barkoderView.config else { return }
guard let decoderConfig = config.decoderConfig else { return }
let arConfig = config.arConfig

arConfig.arMode = .matchFilter

//

decoderConfig.matchFilter = "[\"1234567890128\"]"

arConfig.arMode = .matchFilter

arConfig.returnOnlyMatchedResults = false
arConfig.displayOnlyMatchedResults = false

//

arConfig.returnOnlyMatchedResults = false

//

arConfig.displayOnlyMatchedResults = false