Screen Capture Utils - A plugin to handle screen capture events on android and ios

Overview

Screen Capture Utils

A plugin to handle screen capture events on android and ios

🚀 Initialize SDK

  late ScreenCaptureUtils screenCaptureUtils;
  
  ...   
    
  screenCaptureUtils = ScreenCaptureUtils(
      // Path returns empty on iOS
      onScreenCaptured: (_) {
          print('Captured: $_');
      },
    
      /// Only on Android !!!
      isGuarding: (bool val) {
        print(val);
      },
    
      /// Only on Android !!!
      onScreenCapturedWithDeniedPermission: () {
        print('onScreenCapturedWithDeniedPermission');
      },
  )..intialize();

🔐 Screen Guarding (Android Only)

Guard

   /// Guard Screen
  screenCaptureUtils.guard();
  • This function will apply the FLAG_SECURE to the MainActivity of your app.

UnGuard

   /// Unguard Screen
  screenCaptureUtils.unGuard();
  • This function will remove/clear the FLAG_SECURE from the MainActivity of your app.

Contribution

Lots of PR's would be needed to improve this plugin. So lots of suggestions and PRs are welcome.

You might also like...
A small utility to record Android device screen to a GIF
A small utility to record Android device screen to a GIF

RoboGif A small utility to record Android device screen to an optimized GIF so you can paste it to GitHub or a similar service. Requirements Python 2.

Simple Keyboard can adjustable keyboard height for more screen space
Simple Keyboard can adjustable keyboard height for more screen space

Simple Keyboard About Features: Small size (1MB) Adjustable keyboard height for more screen space Number row Swipe space to move pointer Delete swipe

Android injection using the Anvil compiler plugin

Tangle creates Dagger bindings for Android classes using the Anvil Kotlin compiler plugin. This is meant to be an alternative to Hilt, for those who'd prefer to enjoy the faster compilation and better flexibility of Anvil.

Useful helpers that make it easier to implement maven-plugin mojos with kotlin

A library that makes writing powerful maven plugins even easier by providing kotlin extensions and convenience functions for common use cases.

🧹 Error correcting parser plugin
🧹 Error correcting parser plugin

Tidyparse The main goal of this project is to speed up the process of learning a new language by suggesting ways to fix source code. Tidyparse expects

gRPC and protocol buffers for Android, Kotlin, and Java.

Wire “A man got to have a code!” - Omar Little See the project website for documentation and APIs. As our teams and programs grow, the variety and vol

General purpose utilities and hash functions for Android and Java (aka java-common)

Essentials Essentials are a collection of general-purpose classes we found useful in many occasions. Beats standard Java API performance, e.g. LongHas

Access and process various types of personal data in Android with a set of easy, uniform, and privacy-friendly APIs.
Access and process various types of personal data in Android with a set of easy, uniform, and privacy-friendly APIs.

PrivacyStreams PrivacyStreams is an Android library for easy and privacy-friendly personal data access and processing. It offers a functional programm

A simple and easy to use stopwatch and timer library for android

TimeIt Now with Timer support! A simple and easy to use stopwatch and timer library for android Introduction A stopwatch can be a very important widge

Owner
Chiziaruhoma Ogbonda
✨Mobile Developer. ✨UI/UX designer. ✨UI Developer. 🚀I build ideas to software. 👨🏾‍💻 I live Flutter.
Chiziaruhoma Ogbonda
Multiplaform kotlin library for calculating text differences. Based on java-diff-utils, supports JVM, JS and native targets.

kotlin-multiplatform-diff This is a port of java-diff-utils to kotlin with multiplatform support. All credit for the implementation goes to original a

Peter Trifanov 51 Jan 3, 2023
A utils to change statusbar for Android.

StatusBar 一个Android状态栏工具类,可以设置状态栏颜色、文字深浅、是否隐藏状态栏。 效果预览 注意 最低支持版本为Android5.0(minSdkVersion 21) 本项目仅提供AndroidX版本 在setContentView()之后调用 特点 支持状态栏颜色修改 支持状态

CSDN Mobile 6 May 5, 2022
The most comprehensive utils of ViewBinding.

ViewBinding reduces exceptions caused by id or type errors, which are recommended by both Google officials and Jake Wharton, but it can be a bit cumbersome to use, so this library can help you use ViewBinding with as little code as possible in any usage scenario.

DylanCai 667 Jan 5, 2023
🇧🇷 Utils library for Brazilian specific businesses

???? Brazilian Toolkit ???? Utils library for Brazilian specific businesses. Including in your project Gradle Add below codes to your root build.gradl

Geovani Amaral 14 Jan 7, 2023
🇧🇷 Utils library for Brazilian specific businesses

???? Brazilian Toolkit ???? Utils library for Brazilian specific businesses. Including in your project Gradle Add below codes to your root build.gradl

Geovani Amaral 13 Aug 13, 2022
Android library which makes it easy to handle the different obstacles while calling an API (Web Service) in Android App.

API Calling Flow API Calling Flow is a Android library which can help you to simplify handling different conditions while calling an API (Web Service)

Rohit Surwase 19 Nov 9, 2021
A DSL to handle soft keyboard visibility change event written in Kotlin.

About A DSL to handle soft keyboard visibility change event written in Kotlin. How to use? Step 1. Add it in your root build.gradle at the end of repo

Vinícius Oliveira 17 Jan 7, 2023
A dual screen capable home screen launcher for Android phones with dual displays, such as the LG V60, G8X & Velvet.

Duality-Launcher A dual screen capable home screen launcher for Android phones with dual displays, such as the LG V60, G8X & Velvet

Russ Nash 6 Sep 8, 2022
React Native wrapper to bridge our iOS and Android SDK

React Native wrapper to bridge our iOS and Android SDK

Intercom 94 Jan 1, 2023
⚙ A beautiful and extensible API for bulding preferences screen

Material Preferences ?? Installation Add this in app's build.gradle file: implementation 'com.imangazaliev.material-prefs:core:<version>' implementati

Mahach Imangazaliev 59 Jul 26, 2022