getMenuButtonBoundingClientRectSync()
Requires:
MiniKit≥2.3.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
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
Return Value
Type: Object↓
| Property | Type | Description |
|---|---|---|
width | number | Width, unit: px |
height | number | Height, unit: px |
top | number | Top boundary coordinate, unit: px |
right | number | Right boundary coordinate, unit: px |
bottom | number | Bottom boundary coordinate, unit: px |
left | number | Left boundary coordinate, unit: px |