Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MDNSHostname ¶
MDNSHostname returns the hostname advertised for a service name.
The responder matches queried names exactly, while browsers lowercase hostnames before resolving them — so a mixed-case name would advertise a host that the browser then fails to look up. Lowercasing here means any capitalization works: --name Android is reachable at android.local.
Types ¶
type Platform ¶
type Platform string
Platform names the operating system of the target device. Roadie cannot discover it — nothing about a capture stream or a USB HID link identifies the far end — but it changes how the target behaves, so it is worth stating once at launch rather than working around per symptom.
func ParsePlatform ¶
ParsePlatform normalizes a --platform value. Empty stays empty, meaning unspecified: Roadie then behaves exactly as it did before the flag existed.
func (Platform) DefaultInputMode ¶
DefaultInputMode is the pointer mode that suits the platform, used when --input is not given. Empty means "no opinion", leaving the viewer to decide as before.
func (Platform) PointerSpace ¶
PointerSpace reports which coordinate space the target's absolute pointer addresses — the only place a wrong answer is silently destructive.
"screen" means 0-32767 spans the target's own display; "frame" means it spans the whole captured frame, letterbox bars included.
This is measured, not assumed. An iPhone mirroring into 1920x1080 maps the range across its own screen: sweeping X put the pointer at 25%, 50% and 75% of the phone's display, with no clamping at the pillarbox edges. A Pixel mirroring into the same frame does the opposite — a tap aimed with the frame mapping opened the app under it, while the screen mapping landed on empty wallpaper 35% away.
Everything unverified keeps "frame", which is what Roadie has always done.
func (Platform) TouchAsPointer ¶
TouchAsPointer reports whether touch has to reach the target as its pointer. iOS takes no external touchscreen, but a held mouse button is a finger to it, so a script, agent or viewer that touches still taps, presses and swipes.