Added onSingleResult callback

Hi, I needed an onSingleResult callback, because I wanted to implement an auto-select single result behavior.