setKeepScreenOn
Set whether the current game window stays on.
Declaration
java
void setKeepScreenOn(SUDOPCommonStateHandle handle, SUDOPSetKeepScreenOnParams 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.
SUDOPSetKeepScreenOnParams
| Field | Type | Description |
|---|---|---|
keepScreenOn | boolean | Whether to keep the screen on |
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.
