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​

public void Rotate(double degrees = 90, string? target = null)

Turns two fingers about an element or the screen, positive clockwise. Reports that the gesture was delivered and nothing more, and this one is harder still to confirm than a zoom: nothing in either hierarchy reports a rotation, and there is no WebView property to ask either.

Examples​

Turn a map a quarter turn clockwise​

device.Rotate(90, "@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