---
name: "getMenuButtonBoundingClientRectSync"
mode: "kit"
versionRequirements:
  - { name: "MiniKit", version: "2.3.0" }
  - { name: "@ray-js/ray", version: "0.3.23" }
platform:
  - "iOS"
  - "Android"
---

## getMenuButtonBoundingClientRectSync

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

> [PLATFORM] iOS, Android

### Description

Get the layout and position of the menu button (the capsule button in the top-right corner). Coordinates use the top-left of the screen as the origin.

### Parameters

None


### Examples

#### Demo

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

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