RuntimeBehaviorEvent enum
Typed behavior-event kinds that cross the FFI seam.
Replaces the previous flat int codes (RuntimeBehaviorCode.screenOn = 0)
with an enum so SDK call sites can't drift out of sync with the
engine. Each variant carries:
- code — the raw integer the legacy
synheart_core_push_behaviorFFI still expects. - kind — the canonical string used by the rich
synheart_core_push_behavior_eventFFI /BehaviorEventInput.kind.
When migrating to the rich-event FFI, only kind needs to change; the SDK API stays put.
Values
- screenOn → const RuntimeBehaviorEvent
-
const RuntimeBehaviorEvent(0, 'screen_on') - screenOff → const RuntimeBehaviorEvent
-
const RuntimeBehaviorEvent(1, 'screen_off') - input → const RuntimeBehaviorEvent
-
const RuntimeBehaviorEvent(2, 'touch') - appSwitch → const RuntimeBehaviorEvent
-
const RuntimeBehaviorEvent(3, 'app_switch') - notification → const RuntimeBehaviorEvent
-
const RuntimeBehaviorEvent(4, 'notification') - scroll → const RuntimeBehaviorEvent
-
const RuntimeBehaviorEvent(5, 'scroll') - swipe → const RuntimeBehaviorEvent
-
const RuntimeBehaviorEvent(6, 'swipe') - call → const RuntimeBehaviorEvent
-
const RuntimeBehaviorEvent(7, 'call')
Properties
- code → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- kind → String
-
final
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
RuntimeBehaviorEvent> - A constant List of the values in this enum, in order of their declaration.