Create a native allocator or a typed callback adapter.
createOptionalDelegate allocation, or omit for native construction.
releaseOptionalObserve release when using a creation callback.
Instance an owned context without registration or plugin creation notices.
nameNative context name; need not be unique in Core.
managerLive native manager retained until context release.
handlerBorrowed native input handler, or null.
Owned context with native default dimensions and density.
Release an owned context allocated by this exact outer instancer.
contextOwned allocation; registered contexts reject.
Checked Rml::ContextInstancer with native allocation and release ownership.
Remarks
An omitted callback selects the native Rml::Context constructor. A callback delegates to another ContextInstancer and returns its owned allocation. The name, manager and input handler must match the requested arguments. Direct creation does not register with Rml::GetContext. Factory registration makes createContext use this adapter and transfers native ownership to Core. Registered adapters remain alive through shutdown, including replacement. Owned context descendants retain a visible V8 owner edge; closure cycles can collect. Native destruction is synchronous, with release snapshots delivered afterwards at a safe boundary. Environment cleanup invokes no JS.