Interface, how to call an interface when another has ended

Hello,

I am working on an app to visualize a camera. I am working with the interface and I created one widget for the menu and one for the home button.

In my world I have a camera, when I start the menu comes up and pressing the button in the menu the whole menu disappears and i can see the camera. Now I tried to add a Home button that would bring the menu back. The problem is that I don’t know how to tell the HomeButton widget to show when the Menu-widget is not visible.

Well the obvious solution would be adding a boolean variable and set / get it as you need it.

I managed, thank you