Hi,
I have different types of layers added to my map, How can I find which layer has invoked the popup, I am using watchUtils to find when when the popup is visible, but I am unable to find which layers has invoked the popup
watchUtils.when(view.popup, "visible", function(evt){
//Code
});
I am using Arcgis Javascript 4.24 version. kindly guide me how can I find the layer info