Your listener id (must be unique)
Your listener function
// log a message in the console each time an extension has been registered
JMap.Event.Extension.on.registration(
"custom-core-extension-registration",
params => console.log(`Extension id="${params.extensionId}" has been registered`)
)
JMap.Event.Extension.on.registration
This event is triggered when an extension is registered.