Skip to main content

rotate

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Turn two fingers about an element or the middle of the screen. These call app_rotate.

rotate​

def rotate(degrees: float=90, target: str | None=None) -> dict

Turn two fingers about an element or the screen, positive clockwise.

Like :meth:zoom it reports that the gesture was delivered and nothing more, and this one is harder still to confirm: nothing in either hierarchy reports a rotation, and there is no WebView property to ask.

Examples​

Turn a map a quarter turn clockwise​

device.rotate(90, target="@e2")

On a device​

BeforeAfter
Before: mobium rotate 90 on an Android 15 emulatorAfter: mobium rotate 90 on an Android 15 emulator

mobium rotate 90 on an Android 15 emulator