T

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.

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.

Hermes' sampling profiler.

The native settings file; missing when the loader does not manage settings.

evaluateBytecode(bytecode: ArrayBuffer, tag?: string): unknown

Evaluates Hermes bytecode in the current runtime; tag names it in errors. Throws on invalid bytecode.