Skip to content

API Reference

3cxc edited this page Sep 13, 2026 · 2 revisions

API Reference

NativePluginKit exposes the following namespaces:

Namespace Description
NativePluginKit.Features Feature modules: Log, Transition, Scene, Config, Timing, Story, Card, Entity, EventBus, Strings
NativePluginKit.Events Event types, event payloads, EventDispatcher (host-side)
NativePluginKit.Features.Wrappers EntityId, ObjectIdNative, strongly-typed enums
NativePluginKit.Loader PluginLoader
NativePluginKit.Loader.Constants HostApiTable, HostApiBridgeBuilder, HostApiAttribute, PluginInfo
NativePluginKit.Loader.Plugins Plugin, PluginContext

Key Conventions

  • All API calls must be made on the main thread.
  • All strings are UTF-8. Host allocates, plugin reads, plugin calls Strings.Free to release.
  • All returned strings must be freed — the generated API does this automatically.
  • All event payloads are blittable structs — no managed references.
  • Enums use int in the raw ABI. Strongly-typed accessors are provided by the *.Manual.cs extension classes.

Clone this wiki locally