by Jon Webster
(January 3, 2016)
This example shows how to change then restore ringer state after an event. The input is set to the output variable so the result is always true. You want to check the state and only change if your state is not already set.