Looping through visible tile elements

Hello,

Is it possible to loop through the entities of the visible tile in a tileset and log their ids for example?

Thanks

After a little searching i think the event

tileset.tileVisible.addEventListener(function(tile) {...});

can be used but this triggers not stop even when the camera view is static...
I cannot find any example