Skip to content

Commit

Permalink
Fix package name in README.md
Browse files Browse the repository at this point in the history
Remove comments
  • Loading branch information
skanderhamdi committed Feb 13, 2024
1 parent 4acd6d6 commit 8ac94ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ To use the **Screen Protection Plugin** in your Flutter project, follow these si

```yaml
dependencies:
screen_protection_plugin:
screen_protection:
git:
url: https://github.com/skanderhamdi/screen_protection.git
ref: master
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,6 @@ class ScreenProtectionPlugin: FlutterPlugin, ActivityAware {
channel.setMethodCallHandler(null)
}

/*override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
channel.setMethodCallHandler(null)
}
override fun onMethodCall(call: MethodCall, result: Result) {
when(call.method) {
"secureScreen" -> {
secureScreen()
result.success(true)
}
"unsecureScreen" -> {
unsecureScreen()
result.success(true)
}
"toggleScreenSecurity" -> {
toggleScreenSecurity()
result.success(true)
}
"isScreenSecured" -> {
result.success(isScreenSecured())
}
else -> result.notImplemented()
}
}*/

fun secureScreen() {
activity?.window?.addFlags(WindowManager.LayoutParams.FLAG_SECURE)
}
Expand Down

0 comments on commit 8ac94ff

Please sign in to comment.