How to check if two bodies are in contact?

Hi,

Can we check if two bodies are in contact? If so, what API should I use? Is there an example of this? Thanks.