How to use callbackType is GSContextMenuCallbackName?

How to use callbackType=GSContextMenuCallbackName? What is the callback function for GSContextMenuCallbackName?

The callback is contextMenuCallback_forSelectedLayers_event_()