Iframe toolbarButtonClicked does not work,

Good afternoon
I started working with iframe api I want to trigger an event when the record button is clicked toolbarButtonClicked does not work, please tell me what to do?

In order to subscribe to events for specific toolbar buttons, you need to first set this:

Thank you so much