Calling SDK - Close widget from code

Hi all,

I’ve been developing an app based on the calling sdk demo, and so far been able to get everything up and running.

However, I’ve ran into some trouble when I wanted to close the widget window from code after a certain event is fired. However, as far as I can tell, the only ways I can do this are:

- Calling the callCompleted function from CallingExtension

- Setting the window size to 0,0 and adding flags to set the widget to idle until ‘reopened’

However, both produce different behaviour than pressing the ‘x’ on the widget window. One of those behaviours is that, when selecting the ‘open call options’ option after calling with the widget, the options window will display the widget page, as it was not properly closed (something that doesn’t happen with the ‘x’ button approach).
What other options do I have to properly close the widget window from code, which gives the same behaviour as the ‘x’ button?
Is it possible to somehow reference the function that the ‘x’ button calls to, despite it not being part of the demo code?

Hi, @JeroenCloudCTI :waving_hand: Thanks for the great question. Looking at the documentation, I get the same result as you – there isn’t a listed additional option. And I understand why this would be useful.

We’ll leave this thread open in case other community members have a suggestion or workaround for you.

Best,

Jaycee

@JeroenCloudCTI @Jaycee_Lewis Was a solution to this ever found? This is still a problem.