update no_screenshot
This commit is contained in:
parent
4e6d3eb9b7
commit
7c253994e4
4 changed files with 4 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ introduction_screen: 4a90e557630b28834479ed9c64a9d2d0185d8e48
|
||||||
libsignal_protocol_dart: 618f0c0b49534245a640a31d204265440cbac9ee
|
libsignal_protocol_dart: 618f0c0b49534245a640a31d204265440cbac9ee
|
||||||
lottie: 4f1a5a52bdf1e1c1e12fa97c96174dcb05419e19
|
lottie: 4f1a5a52bdf1e1c1e12fa97c96174dcb05419e19
|
||||||
mutex: 84ca903a3ac863735e3228c75a212133621f680f
|
mutex: 84ca903a3ac863735e3228c75a212133621f680f
|
||||||
no_screenshot: 299c2d1d70448f23f1e9835a18585edfc9dbe6fa
|
no_screenshot: 1b561a2a87c19e317f3cb225ed023b113c9dd3a1
|
||||||
optional: 71c638891ce4f2aff35c7387727989f31f9d877d
|
optional: 71c638891ce4f2aff35c7387727989f31f9d877d
|
||||||
photo_view: a13ca2fc387a3fb1276126959e092c44d0029987
|
photo_view: a13ca2fc387a3fb1276126959e092c44d0029987
|
||||||
pointycastle: bbd8569f68a7fccbdf0b92d0b44a9219c126c8dd
|
pointycastle: bbd8569f68a7fccbdf0b92d0b44a9219c126c8dd
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,7 @@ class NoScreenshotPlugin : FlutterPlugin, MethodChannel.MethodCallHandler, Activ
|
||||||
|
|
||||||
private fun showImageOverlay(activity: Activity) {
|
private fun showImageOverlay(activity: Activity) {
|
||||||
if (overlayImageView != null) return
|
if (overlayImageView != null) return
|
||||||
val resId = activity.resources.getIdentifier("image", "drawable", activity.packageName)
|
val resId = activity.resources.getIdentifier("no_screenshot_image", "drawable", activity.packageName)
|
||||||
if (resId == 0) return
|
if (resId == 0) return
|
||||||
activity.runOnUiThread {
|
activity.runOnUiThread {
|
||||||
val imageView = ImageView(activity).apply {
|
val imageView = ImageView(activity).apply {
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ public class IOSNoScreenshotPlugin: NSObject, FlutterPlugin, FlutterStreamHandle
|
||||||
// visible in the app switcher (otherwise the secure text field
|
// visible in the app switcher (otherwise the secure text field
|
||||||
// would show a blank screen).
|
// would show a blank screen).
|
||||||
disablePreventScreenshot()
|
disablePreventScreenshot()
|
||||||
enableImageScreen(named: "image")
|
enableImageScreen(named: "NoScreenshotImage")
|
||||||
} else if isBlurOverlayModeEnabled {
|
} else if isBlurOverlayModeEnabled {
|
||||||
disablePreventScreenshot()
|
disablePreventScreenshot()
|
||||||
enableBlurScreen(radius: blurRadius)
|
enableBlurScreen(radius: blurRadius)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: no_screenshot
|
name: no_screenshot
|
||||||
description: Flutter plugin to prevent screenshots, detect screen recording, and show blur/color/image overlays in the app switcher on Android, iOS, macOS, Linux, Windows, and Web.
|
description: Flutter plugin to prevent screenshots, detect screen recording, and show blur/color/image overlays in the app switcher on Android, iOS, macOS, Linux, Windows, and Web.
|
||||||
version: 1.0.0
|
version: 1.1.0
|
||||||
homepage: https://flutterplaza.com
|
homepage: https://flutterplaza.com
|
||||||
repository: https://github.com/FlutterPlaza/no_screenshot
|
repository: https://github.com/FlutterPlaza/no_screenshot
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue