pushBehaviorEventJson method

int? pushBehaviorEventJson(
  1. String eventJson
)

Push one rich behavior event as JSON. Returns the runtime's status (0 = accepted), or null when the runtime does not export the symbol.

Prefer the typed BehaviorEventInput wrapper on the facade — the kind string is a closed set and an unrecognised one is dropped silently.

Implementation

int? pushBehaviorEventJson(String eventJson) {
  final fn = _ffi.pushBehaviorEvent;
  if (fn == null) return null;
  return _withCString(eventJson, (p) {
    final rc = fn(_handle, p);
    return _checked(rc, failed: rc != 0);
  });
}