Difference between revisions of "Trigger: System Setting Change"
(6 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
'''Example Usage #1'''<br/> | '''Example Usage #1'''<br/> | ||
− | <pre style="background-color: # | + | <pre style="background-color: #FF5959; color: white; border-radius: 10px; padding: 10px;"> |
Triggers | Triggers | ||
System Setting Change .. Any | System Setting Change .. Any | ||
− | </pre | + | </pre> |
<pre style="background-color: #3498DB; color: white; border-radius: 10px; padding: 10px;"> | <pre style="background-color: #3498DB; color: white; border-radius: 10px; padding: 10px;"> | ||
Actions | Actions | ||
Line 16: | Line 16: | ||
Set Variable .. system_setting_value: [system_setting_value] | Set Variable .. system_setting_value: [system_setting_value] | ||
Popup Message .. [lv=system_setting_category]:[lv=system_setting_key]:[lv=system_setting_value] | Popup Message .. [lv=system_setting_category]:[lv=system_setting_key]:[lv=system_setting_value] | ||
− | </pre | + | </pre> |
<pre style="background-color: #00838F; color: white; border-radius: 10px; padding: 10px;"> | <pre style="background-color: #00838F; color: white; border-radius: 10px; padding: 10px;"> | ||
Local variables | Local variables | ||
− | system_setting_category | + | system_setting_category [Var type - String] |
− | system_setting_key | + | system_setting_key [Var type - String] |
− | system_setting_value | + | system_setting_value [Var type - String] |
</pre><br> | </pre><br> | ||
− | |||
'''Example Usage #2'''<br/> | '''Example Usage #2'''<br/> | ||
− | <pre style="background-color: # | + | <pre style="background-color: #FF5959; color: white; border-radius: 10px; padding: 10px;"> |
Triggers | Triggers | ||
System Setting Change .. accessibility_display_inversion_enabled | System Setting Change .. accessibility_display_inversion_enabled | ||
− | </pre | + | </pre> |
<pre style="background-color: #3498DB; color: white; border-radius: 10px; padding: 10px;"> | <pre style="background-color: #3498DB; color: white; border-radius: 10px; padding: 10px;"> | ||
Actions | Actions | ||
Line 44: | Line 43: | ||
Else | Else | ||
Popup Message .. Color inversion off | Popup Message .. Color inversion off | ||
− | </pre | + | </pre> |
<pre style="background-color: #00838F; color: white; border-radius: 10px; padding: 10px;"> | <pre style="background-color: #00838F; color: white; border-radius: 10px; padding: 10px;"> | ||
Local variables | Local variables | ||
− | system_setting_category | + | system_setting_category [Var type - String] |
− | system_setting_key | + | system_setting_key [Var type - String] |
− | system_setting_value | + | system_setting_value [Var type - String] |
Latest revision as of 14:41, 10 June 2024
This trigger fires when a system setting from the device's system, secure or global settings table is updated.
Example Usage #1
Triggers System Setting Change .. Any
Actions Set Variable .. system_setting_category: [system_setting_category] Set Variable .. system_setting_key: [system_setting_key] Set Variable .. system_setting_value: [system_setting_value] Popup Message .. [lv=system_setting_category]:[lv=system_setting_key]:[lv=system_setting_value]
Local variables system_setting_category [Var type - String] system_setting_key [Var type - String] system_setting_value [Var type - String]
Example Usage #2
Triggers System Setting Change .. accessibility_display_inversion_enabled
Actions Set Variable .. system_setting_category: [system_setting_category] Set Variable .. system_setting_key: [system_setting_key] Set Variable .. system_setting_value: [system_setting_value] If system_setting_category = Secure AND system_setting_key = accessibility_display_inversion_enabled If system_setting_value = 1 Popup Message .. Color inversion on Else Popup Message .. Color inversion off
Local variables system_setting_category [Var type - String] system_setting_key [Var type - String] system_setting_value [Var type - String]