Skip to main content

Module bridge

Module bridge 

Source
Expand description

The wire table for backends whose native side reaches Rust through ONE numeric-kind trampoline (Android’s JNI nativeOnEvent, ArkUI’s day_arkui_on_event). This enum is the single source of truth for those kind numbers; the Java and C++ sides carry mirrored constants that parity tests check against these discriminants (so a collision or drift fails cargo test on the host instead of silently mis-decoding events on a device). AppKit/UIKit/GTK/Qt emit Event values directly and never use these numbers; XAML uses per-event callbacks with its own small local codes.

Payload conventions ride (num: f64, text: String) per kind — documented on each variant.

Enums§

BridgeKind
One numeric event kind. as i32 is the wire value.
Day API ↩ Guides· daybrite.dev