# RingManager

> 对戒指进行调用

#### Static Public Member Function

***

<table data-header-hidden><thead><tr><th width="577"></th><th></th></tr></thead><tbody><tr><td><strong>OpenRing</strong></td><td><br></td></tr><tr><td>void OpenRing(RingTouchType type, bool defaultLongClickEnable);</td><td></td></tr><tr><td><p>设置戒指驱动.</p><p>RingTouchType  </p><p>        设置戒指事件类型.  </p><p>        UnityTouchEvent 走Unity默认事件  </p><p>        CustomTouchEvent 走自定义事件  </p><p>        BothTouchEvent 两个事件同时进行</p><p>defaultLongClickEnable  </p><p>        长按是否回到Launcher</p></td><td></td></tr></tbody></table>

| **CloseRing**     | <p><br></p> |
| ----------------- | ----------- |
| Void CloseRing(); |             |
| 关闭戒指连接            |             |

| **RingOpened**        | <p><br></p> |
| --------------------- | ----------- |
| bool RingOpened{get}; |             |
| 戒指是否连接着               |             |

| **SwitchTouchType**                       | <p><br></p> |
| ----------------------------------------- | ----------- |
| Void SwitchTouchType(RingTouchType type); |             |
| 切换戒指的触摸类型.                                |             |

| **SetRingLongClickEnalbe**                | <p><br></p> |
| ----------------------------------------- | ----------- |
| Void SetRingLongClickEnalbe(bool enable); |             |
| 是否支持戒指长按回launcher                         |             |

| **GetTouchType**              | <p><br></p> |
| ----------------------------- | ----------- |
| RingTouchType GetTouchType(); |             |
| 获取当前戒指的触摸类型                   |             |

<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/ringmanager.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.
