I\'m thinking about using a hidden api to turn the screen off in my app. setScreenState from https://android.googlesource.com/platform/frameworks/base/+/ecl
setScreenState
setScreenState...does what I want, but its a hidden API. Does that mean I shouldn't use it?
Yes, it means you shouldn't use it. In this case, the whole class would appear to be excluded from the SDK. Please stick to the SDK.