---
name: "getMenuButtonBoundingClientRectSync"
mode: "kit"
versionRequirements:
  - { name: "MiniKit", version: "2.3.0" }
platform:
  - "iOS"
  - "Android"
---

## getMenuButtonBoundingClientRectSync

> [VERSION] MiniKit >= 2.3.0

> [PLATFORM] iOS, Android

### Description

Get the layout position of the menu button (capsule button at the top right). Coordinates are relative to the top-left corner of the screen.

### Parameters

None


### Examples

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