> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tapkit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Device Control

> Navigation, lock state, orientation, and hardware buttons

## Navigation

```python theme={null}
phone.home()            # Go to home screen
phone.escape()          # Go back / dismiss modal
phone.app_switcher()    # Open app switcher
phone.control_center()  # Open Control Center
phone.spotlight()       # Open Spotlight search
phone.siri()            # Activate Siri
```

## Lock & Unlock

```python theme={null}
phone.lock()                         # Lock the screen
phone.unlock()                       # Unlock (no passcode)
phone.unlock(passcode="123456")      # Unlock with passcode
```

Check lock state via `client.status()`:

```python theme={null}
status = client.status()
if status.screen_locked:
    phone.unlock(passcode="123456")
```

## Orientation

```python theme={null}
phone.rotate(orientation="portrait")     # Default upright
phone.rotate(orientation="left")         # Landscape, home on left
phone.rotate(orientation="right")        # Landscape, home on right
phone.rotate(orientation="upside_down")  # Portrait inverted
```

## Hardware Buttons

```python theme={null}
phone.volume_up()      # Increase volume one step
phone.volume_down()    # Decrease volume one step
phone.action_button()  # Press Action button (iPhone 15 Pro+)
```
