---
name: "getMenuButtonBoundingClientRectSync"
mode: "kit"
versionRequirements:
  - { name: "MiniKit", version: "2.3.0" }
  - { name: "@ray-js/ray", version: "0.3.23" }
platform:
  - "iOS"
  - "Android"
title: "getMenuButtonBoundingClientRectSync - 获取菜单按钮（右上角胶囊按钮）的布局位置信息。坐标信息以屏幕左上角为原点。的同步版本"
---

## getMenuButtonBoundingClientRectSync

> [VERSION] MiniKit >= 2.3.0 | @ray-js/ray >= 0.3.23

> [PLATFORM] iOS, Android

### 描述

获取菜单按钮（右上角胶囊按钮）的布局位置信息。坐标信息以屏幕左上角为原点。

### 参数

无


### 示例代码

#### Demo

```tsx
import { getMenuButtonBoundingClientRect } from '@ray-js/ray'

getMenuButtonBoundingClientRect({
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});
```
