ActiveRulesController class

Controller for managing rules from Obsly Tools UI This is a UI adapter that uses the SDK's RulesManager

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addActiveRule(Map<String, dynamic> ruleDefinition) Future<bool>
Add a rule to active rules via SDK's RulesManager
clearActiveRules() Future<void>
Clear all manual rules via SDK's RulesManager
exportActiveRules() Future<String>
Export active rules for debugging via SDK's RulesManager
getActiveRules() Future<List<Map<String, dynamic>>>
Get all active rules from SDK's RulesManager
getActiveRulesByType(String eventType) Future<List<Map<String, dynamic>>>
Get active rules filtered by type from SDK's RulesManager
getActiveRulesCount() Future<int>
Get count of active rules from SDK's RulesManager
isRuleActive(String ruleKey) Future<bool>
Check if a manual rule exists in SDK's RulesManager
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeActiveRule(String ruleKey) Future<bool>
Remove a rule from active rules via SDK's RulesManager
toggleRuleStatus(String ruleKey) Future<bool>
Toggle rule active status (not supported by RulesManager yet)
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ActiveRulesController
no setter