# PlatformAndroid

> 对原生Activity的相关调用

#### Static Public Member Function

***

<br>

| **CurActivity**                     | <p><br></p> |
| ----------------------------------- | ----------- |
| AndroidJavaObject CurActivity{get}; |             |
| 获取当前Activity                        |             |

| **GetScreenBrightness**      | <p><br></p> |
| ---------------------------- | ----------- |
| Float GetScreenBrightness(); |             |
| 获取当前亮度                       |             |

| **SetScreenBrightness**                  | <p><br></p> |
| ---------------------------------------- | ----------- |
| void SetScreenBrightness(float percent); |             |
| 设置屏幕亮度. 0-1                              |             |

| **GetGlobalCpuTemperature**      | <p><br></p> |
| -------------------------------- | ----------- |
| Float GetGlobalCpuTemperature(); |             |
| 获取当前cpu温度                        |             |

| **SetGlassLegTouchEventExchange**                                      | <p><br></p> |
| ---------------------------------------------------------------------- | ----------- |
| void (bool isExchanged);                                               |             |
| 设置是否互换镜腿交互事件\<param name="isExchanged">false : 不互换; true : 互换\</param> |             |

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rayneo.gitbook.io/rayneo-devdoc/x-xi-lie/unity-kai-fa/x2-api-jiu-ban-sdk-zhi-chi/platformandroid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
