Changes

no edit summary
Line 1: Line 1: −
<span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span>
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on whether headphones are connected.</pre>
   −
This constraint can be used to allow a trigger to fire only when the headphones are connected/not connected.
+
''' Options '''
 +
 
 +
* '''Connected''': Constraint passes only when headphones are connected
 +
* '''Disconnected''': Constraint passes only when headphones are disconnected
 +
* '''With/Without Mic''' - Optionally filter by microphone presence
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Speaks notifications only when headphones are connected.''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Notification Received</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Speak Text - "{not_app_name} - {notification}"</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Headphone Connection - Connected</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: Headphones Insert/Removed|Headphones Insert/Removed Trigger]]