clipboard_monitor
0.9.3, released 7 months ago by mix1009.com
Flutter plugin that notifies when the system clipboard text changes on Android and iOS.
What it does
Provides a static API to register callbacks that are invoked whenever the clipboard content is updated while the app is running. Supports registering multiple callbacks and removing them individually or all at once.
AI-written summary of version 0.9.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need real‑time clipboard change notifications inside a running app
- You want a simple callback‑based API without streams or code generation
Skip it when
- The app may be backgrounded or not running (monitoring stops)
- You require clipboard access on Android 10+ when the app is not in focus
Strengths
- Lightweight and easy to integrate
- Works on both Android and iOS with a single API
- No additional build steps or code generation required
Weaknesses
- Does not work when the app is not in the foreground
- Limited to text content only
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:clipboard_monitor/clipboard_monitor.dart';
void startClipboardMonitor() {
ClipboardMonitor.registerCallback(onClipboardText);
}
void stopClipboardMonitor() {
ClipboardMonitor.unregisterCallback(onClipboardText);
}
void onClipboardText(String text) {
print('clipboard changed: $text');
}
void stopAllClipboardMonitoring() {
ClipboardMonitor.unregisterAllCallbacks();
}Alternatives
Packages that do the same job and could replace clipboard_monitor.
- system_resources
Access system resources like CPU load and memory usage via dart:ffi.
77Compare - screen_capture_event
Catch screenshots and screen recordings on Android and iOS.
87Compare - system_info2
Provides easy access to system information like architecture, kernel, memory, OS, CPU, and user.
85Compare - nativeapi
Dart bindings to native system APIs across desktop and mobile
85Compare