Hai,anyone can help me to create user defined listener interface with some code snippets
This is probably what you're looking for.