NativePlatformBridge
Platform-wide helpers the loader publishes as globalThis.NativePlatform, not scoped to a plugin.
type NativePlatformBridge = { … }Members
Addon verification and bytecode loading.
Android-only helpers; missing on iOS and on loaders without the in-app installer.
Facts about the Discord install.
Crash and freeze attribution for addons; missing when the loader has no documents directory.
Facts about the device.
File removal in the Unbound folder; missing when the loader has no documents directory.
The font list; missing when the loader cannot list fonts.
iOS-only helpers; missing on Android.
The host platform.
Hermes' sampling profiler.
The native settings file; missing when the loader does not manage settings.
(bytecode: ArrayBuffer, tag?: string): unknownEvaluates Hermes bytecode in the current runtime; tag names it in errors. Throws on invalid bytecode.