| Line 1: |
Line 1: |
| | <pre class="header-style"> | | <pre class="header-style"> |
| − | This trigger will fire when Daydream mode is turned on or off on the device. | + | This trigger will fire when the Daydream mode turns on or off. The Daydream mode may also be known as the screensaver on some devices. |
| | + | </pre> |
| | | | |
| − | The Daydream mode may also be known as the screensaver on some devices. | + | ''' Options ''' |
| − | </pre>
| + | |
| | + | * '''Daydream On''' - The trigger fires when Daydream mode is activated. |
| | + | |
| | + | * '''Daydream Off''' - The trigger fires when Daydream mode is deactivated. |
| | + | |
| | + | ''' Examples ''' |
| | + | |
| | + | Example 1: Pause music when Daydream activates |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Daydream On/Off [Daydream On]</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Control Media: Pause</pre> |
| | + | |
| | + | Example 2: Resume normal brightness when Daydream ends |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Daydream On/Off [Daydream Off]</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Set Brightness: Auto</pre> |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * Daydream is Android's screensaver feature that displays information or visuals when the device is docked or charging. |
| | + | * This trigger responds to the ACTION_DREAMING_STARTED and ACTION_DREAMING_STOPPED system broadcasts. |
| | + | * On some devices, Daydream may be called "Screen saver" in settings. |
| | + | * Daydream typically activates when the device is docked or charging and the screen times out. |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger:_Device_Docked/Undocked|Device Docked/Undocked Trigger]] |
| | + | * [[Trigger:_Screen_On/Off|Screen On/Off Trigger]] |
| | + | * [[Trigger:_Power_Button_Toggle|Power Button Toggle Trigger]] |