パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.0.1

screenshot_callback

iOS および Android でモバイル画面のスクリーンショットを検出し、コールバック関数を実行できる Flutter プラグイン。

AndroidiOS
30日間ダウンロード
7060
いいね数
101
Pub ポイント
150

パッケージをインストール

flutter pub add screenshot_callback

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

screenshot_callback パッケージは、Android および iOS デバイスでのモバイルスクリーンショットの検出を可能にする Flutter プラグインです。スクリーンショットが撮影されたときにコールバック関数をトリガーし、開発者が動的に応答できるようにします(たとえば、機密コンテンツを一時停止したり、イベントを記録したりする)。クロスプラットフォーム互換性を目的としており、ネイティブコードの変更なしに既存の Flutter アプリにシームレスに統合できます。プラグインは、プラットフォーム固有の API を活用して、スクリーンショットの活動を効率的かつ信頼性高く監視します。

用途

  • センシティブなアプリでユーザーがスクリーンショットを撮ったタイミングを検出する
  • スクリーンショットの検出時にセキュリティ対策を実行する
  • 分析用にスクリーンショットイベントをログ記録
  • 不正なスクリーンショットの防止
  • スクリーンショット後に応答性のあるUI調整を有効にする

主な機能

  • Android および iOS 用のクロスプラットフォーム対応
  • スクリーンショットの検出時に簡単なコールバックを実行
  • pub add コマンドによる最小限のセットアップ
  • 安全で軽量な実装
  • ネイティブコードの変更は不要です

適している対象

  • スクリーンショット保護が必要なアプリ
  • セキュリティを重視したアプリケーション
  • 教育的または試験のような環境
  • 利用状況のトラッキングが必要なコンテンツプロバイダー
  • プライバシーに配慮した機能を構築する開発者

注意事項

  • Android で適切な権限が必要です
  • スクリーンショットの検出に限定され、防止はできません
  • すべてのデバイスモデルやOSバージョンで動作しない可能性があります
  • iOS と Android では動作が異なる場合があります
  • すべてのシナリオで100%の検出精度を保証しない

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Screenshot Callback

Flutter plugin that allows you to detect mobile screenshot and execute callback functions on iOS and Android. 🚀

Usage • Issues and Feedback • Author • License

Feedback welcome and Pull Requests are most welcome!

Usage

Import the package

To use this plugin, follow the plugin installation instructions.

Use the plugin

Add the following import to your Dart code:

import 'package:screenshot_callback/screenshot_callback.dart';

Initialize ScreenshotCallback with the scopes you want:

ScreenshotCallback screenshotCallback = ScreenshotCallback();
addListener

Then invoke addListener method of ScreenshotCallback. Add custom functions that you want to excute after detect screenshot. e.g:

screenshotCallback.addListener(() {
  //Void funtions are implemented
  print('detect screenshot');
});
dispose

You need to call dispose method to terminate ScreenshotCallback before you exit the app e.g:

screenshotCallback.dispose();

Issues and Feedback

Please file issues to send feedback or report a bug. Thank you !

Author

License

MIT

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。