getScreenBrightness
Get the brightness setting of the current game window.
Declaration
java
void getScreenBrightness(SUDOPCommonStateHandle handle);This is a host callback on SUDOPWrappedClient. Register the implementation with registerWrappedClient. Perform the operation and report success or failure once through the SDK-supplied handle. Perform view and window operations on the Android main thread.
Result
Call handle.success(dataJson) on success or handle.failure(retCode, retMsg) on failure, with a nonzero error code.
json
{"value":0.5}value is the window brightness setting, ranging from 0 to 1; it can be -1 when following the system. It is not a measurement of actual screen luminance.
Handle type: global.sud.op.runtime.client.SUDOPCommonStateHandle。
