Toggle Settings 1.0

Check the status of a setting before setting it so you can know which state it was on

  1. joaomgcd
    See how you can easily toggle any setting by checking its status first.

    You start by doing a UI query on the toggler and check if it's on or off. Then you use that state to click it.

    This way you can easily toggle a device and don't have to assume which state it is in before trying to do so.

    In this example you can see how you can toggle the Adaptive Brightness setting by first learning what status it's in.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice