setScreenBrightness
Set the brightness of the current game window.
Declaration
java
void setScreenBrightness(SUDOPCommonStateHandle handle, SUDOPSetScreenBrightnessParams params);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.
SUDOPSetScreenBrightnessParams
| Field | Type | Description |
|---|---|---|
value | float | 0–1; Android also accepts -1 to follow the system |
Result
Call handle.success(dataJson) on success or handle.failure(retCode, retMsg) on failure, with a nonzero error code.
No result data is required on success; call handle.success(null).
Handle type: global.sud.op.runtime.client.SUDOPCommonStateHandle。
The parameter type is in global.sud.op.runtime.core.model.
