added bridge for setDelegate

Let me know if there is any consistency with other plugins