Hi Appu,
Good question. Here's an example that will do that. It's a new example so the documentation is not complete on it yet but it works entirely. The completed application with documentation should be available on our website within a week.
Hope this helps!
Brian Spears
Applications Engineer