Brightness.setBrightness() is not a function


#1

I am trying to change brightness with Brightness.setBrightness(1), but I get a TypeError saying that the function doesn’t exist.

I have imported Brightness and Brightness.getBrightnessAsync() works.


#2

Sorry, the docs are a bit off. It should be Brightness.setBrightnessAsync.


closed #3

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.