OptionalgetReturn an integer mask 0..15; default All.
OptionalonRml::Plugin::OnContextCreate; live context.
OptionalonRml::Plugin::OnContextDestroy; before documents/models.
OptionalonRml::Plugin::OnDataModelCreate; context and model name.
OptionalonRml::Plugin::OnDataModelDestroy; model remains discoverable.
OptionalonRml::Plugin::OnDocumentLoad; before load event.
OptionalonRml::Plugin::OnDocumentOpen; at the stream load entry.
OptionalonRml::Plugin::OnDocumentUnload; after unload event.
OptionalonRml::Plugin::OnElementCreate; initialized factory element.
OptionalonRml::Plugin::OnElementDestroy; live base Element destructor.
OptionalonNotify the plugin that the RmlUi runtime has initialized.
OptionalonNotify the plugin that the RmlUi runtime is shutting down.
Synchronous Rml::Plugin notifications.
Remarks
Arguments are live borrowed facades and expire on callback return. Approved reads are context name/dimensions/getDataModel/getDataModels, element id/tagName/attribute reads, and document title/sourceURL. Other Native calls are rejected; registerPlugin and unregisterPlugin are allowed. Copy required values inside the callback. A data model is still discoverable during its destroy notification and becomes invalid immediately after Native removal. All notification callbacks must return undefined synchronously.