If I'm adding the fullscreen widget and activate fullscreen by clicking the widget, how do I programmatically exit fullscreen?
Got it. Thanks.
I had tried that but my fullscreen.viewModel was out of scope because I was calling it inside a trigger-action that was inside an IdentifyTask.
Use the exit method on the view model.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html#exit
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.