onExtensionEventWithContext

The event callback of the extension.

virtual void onExtensionEventWithContext(const ExtensionContext &context, const char* key, const char* value) {
    (void)context;
    (void)key;
    (void)value;
  }

To listen for events while the extension is running, you need to register this callback.

Parameters

context
The context information of the extension, see ExtensionContext.
key
The key of the extension.
value
The value of the extension key.