RulesIntegration class

Simplified rules integration for Obsly Hub Uses obsly_flutter_rules package directly when available

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
Whether rules integration is available and active
no setter
isExecutionEnabled bool
Get whether rules execution is enabled at runtime
no setter
rulesController RulesController?
Get the current rules controller instance (for debug purposes)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configureFromConfig(bool enableRules) → void
Configure execution from configuration (called during SDK init)
initialize({bool force = false}) Future<void>
Initialize rules integration with direct dependency
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processHttpEvent(ObslyEventBase event) Future<void>
Execute rules for HTTP events with fresh appContext
processLifecycleEvent(ObslyEventBase event) Future<void>
Execute rules for lifecycle events with fresh appContext
processNavigationEvent(ObslyEventBase event) Future<void>
Execute rules for navigation events with fresh appContext
processUIEvent(ObslyEventBase event) Future<void>
Execute rules for UI events with fresh appContext
setExecutionEnabled(bool enabled) → void
Enable or disable rules execution at runtime
testRules() Future<void>
Test the rules integration
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance RulesIntegration
no setter

Static Methods

clearRulesController() → void
Clear any registered external rules controller This method is now a no-op since we use direct initialization
registerRulesController(dynamic rulesController) → void
Register an external rules controller instance This method is now a no-op since we use direct initialization
resetForTesting() → void
Reset singleton instance for testing