The APIs on this page will only work with SDK 4.9+.
Create and start a Moddable XS virtual machine for an Alloy app.
Configuration record, or NULL for default settings.
Configuration record for creating a Moddable XS virtual machine. Used with moddable_createMachine() to customize the JS runtime. Set recordSize to sizeof(ModdableCreationRecord) for version compatibility.
Size of this struct in bytes (for versioning)
Stack size in bytes (0 for default)
Slot heap size in bytes (0 for default)
Chunk heap size in bytes (0 for default)
Combination of kModdableCreationFlag* values.
Optional pointer to an fxBuildFFI function for custom native bindings.
Flag to enable XS instrumentation logging over Bluetooth. When set, the Moddable XS engine will log instrumentation data (e.g. memory usage, slot/chunk/stack statistics) via app_log. Logging is only active when a Bluetooth log listener is connected; otherwise this flag has no effect.
Flag to enable XS debugging using xsbug. Should be used in combination with pebble build -debug.
Do you have questions about the Pebble SDK?
Do you need some help understanding something on this page?
You can either take advantage of our awesome developer community and check out the SDK Help forums, or you can join us on the Discord!