패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.3.0

clipboard_watcher

이 플러그인을 사용하면 Flutter 앱에서 클립보드 변경 사항을 감시할 수 있습니다.

AndroidiOSmacOSWindowsLinux
30일 다운로드
4.3천
좋아요
43
Pub 점수
140

패키지 설치

flutter pub add clipboard_watcher

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

clipboard_watcher 패키지는 여러 플랫폼에서 시스템 클립보드의 실시간 변경 사항을 모니터링할 수 있도록 해주는 Flutter 앱을 가능하게 합니다. 복사된 텍스트나 데이터에 반응해야 하는 앱에 이상적인 간단한 API를 제공합니다. 이 플러그인은 Android, iOS, macOS, Windows, Linux를 지원하여 크로스플랫폼 호환성을 보장합니다. 개발자는 클립보드 기록 관리자, 자동화 도구, 사용자의 복사 작업에 동적으로 반응하는 텍스트 처리 앱 등을 구축하는 데 사용할 수 있습니다.

사용 사례

  • 클립보드 기록 추적
  • 자동 텍스트 처리
  • 크로스 플랫폼 클립보드 모니터링
  • 데이터 전송 자동화
  • 실시간 텍스트 캡처

주요 기능

  • 실시간 클립보드 리스닝
  • 다중 플랫폼 지원
  • 간단한 이벤트 기반 API
  • 크로스 플랫폼 일관성
  • 경량이고 효율적

적합한 대상

  • 클립보드 인식 앱을 개발하는 개발자
  • 자동 텍스트 추출이 필요한 도구
  • 클립보드에서 실시간 데이터 동기화가 필요한 앱
  • 자동화 및 생산성 도구
  • 크로스플랫폼 데스크톱 및 모바일 앱

고려 사항

  • 일부 플랫폼에서는 적절한 권한이 필요합니다
  • 이전 OS 버전에서는 기능이 제한될 수 있습니다
  • 백그라운드 작업은 플랫폼 고유의 동작에 의존합니다
  • 암호화 없이 민감한 데이터에 적합하지 않습니다
  • polling이 너무 자주 발생하면 성능에 영향을 미침

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

🚀 Ship Your App Faster: Try Fastforge - The simplest way to build, package and distribute your Flutter apps.

clipboard_watcher

pub version All Contributors

This plugin allows Flutter apps to watch clipboard changes.


English | 简体中文


Platform Support

Platform Support
Linux ✔️ Fully supported
macOS ✔️ Fully supported
Windows ✔️ Fully supported
iOS 14+ Needs user permission to read data copied from others apps
Old versions are fully supported out of the box
Android 10+ Only works when the app is in the foreground
Old versions are fully supported out of the box

Quick Start

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  clipboard_watcher: ^0.2.0
Usage
class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> with ClipboardListener {
  @override
  void initState() {
    clipboardWatcher.addListener(this);
    // start watch
    clipboardWatcher.start();
    super.initState();
  }

  @override
  void dispose() {
    clipboardWatcher.removeListener(this);
    // stop watch
    clipboardWatcher.stop();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    // ...
  }

  @override
  void onClipboardChanged() async {
    ClipboardData? newClipboardData = await Clipboard.getData(Clipboard.kTextPlain);
    print(newClipboardData?.text ?? "");
  }
}

Please see the example app of this plugin for a full example.

Who's using it?

  • Biyi - A convenient translation and dictionary app.

Contributors

LiJianying
LiJianying

💻
Ademar
Ademar

💻
Amritpal Singh
Amritpal Singh

💻
J-P Nurmi
J-P Nurmi

💻
Leo Peng
Leo Peng

💻
Add your contributions

License

MIT

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트