clipboard_listener 1.0.0

Flutter Android iOS

The flutter pasteboard listener can monitor pasteboard changes and notify you by callback

clipboard_listener #

Flutter 粘贴板监听器,在粘贴板内容改变时通知您
注意:由于Android10改变了监听器策略,因此,当您的APP在后台运行时,将不会通知您
注意:由于IOS系统监听器策略,因此,当您的APP在后台运行时,将不会通知您

如果您有能够解决后台无法监听的办法,请联系我,我将集成在该插件内.

Getting Started #

Android 基于: ClipboardManager.OnPrimaryClipChangedListener
IOS 基于:UIPasteboardChangedNotification

使用方法 #

通过 ClipboardListener.addListenerClipboardListener.removeListener 可进行事件监听

@override
vodi initState(){
  super.initState();
  ClipboardListener.addListener(_messageListener);
}
@override
void dispose() {
  super.dispose();
  ClipboardListener.removeListener(_messageListener);
}

 _messageListener() {
  // you code
};

注意:addListener 后,请注意在必要时进行 removeListener

其它插件 #

我同时维护的还有以下插件,如果您感兴趣与我一起进行维护,请通过Github联系我,欢迎 issues 和 PR。
平台插件描述版本-
FlutterFlutterTencentImPlugin腾讯云IM插件pub package
FlutterFlutterTencentRtcPlugin腾讯云Rtc插件pub package
FlutterFlutterXiaoMiPushPlugin小米推送SDK插件pub package
FlutterFlutterHuaWeiPushPlugin华为推送(HMS Push)插件pub package
FlutterFlutterTextSpanField自定义文本样式输入框pub package
FlutterFlutterClipboardListener粘贴板监听器pub package
FlutterFlutterQiniucloudLivePluginFlutter 七牛云直播云插件暂未发布,通过 git 集成
0
likes
100
pub points
23%
popularity

The flutter pasteboard listener can monitor pasteboard changes and notify you by callback

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

690717394@qq.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on clipboard_listener