Documentation
¶
Overview ¶
Set and read clipboard text via the Android clipboard binder service.
Demonstrates actual clipboard copy-paste through the IClipboard binder interface: sets a plain-text clip using the generated ClipData struct, reads it back with ClipData.UnmarshalParcel, and verifies the round-trip.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/clipboard_monitor ./examples/clipboard_monitor/ adb push build/clipboard_monitor /data/local/tmp/ && adb shell /data/local/tmp/clipboard_monitor
Click to show internal directories.
Click to hide internal directories.