ScreenCaptureEvent class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addScreenRecordListener(dynamic callback(bool recorded))
→ void
-
Listen when user screenrecord the screen
You can add listener multiple time, and every listener will be executed
-
addScreenShotListener(dynamic callback(String filePath))
→ void
-
Listen when user screenshot the screen
You can add listener multiple time, and every listener will be executed
Note : filePath only work for android
-
dispose()
→ void
-
Dispose all listener on native side
-
isRecording()
→ Future<bool>
-
You can get record status to check if screenrecord still active
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
preventAndroidScreenShot(bool value)
→ Future<void>
-
It will prevent user to screenshot/screenrecord on Android by set window Flag to WindowManager.LayoutParams.FLAG_SECURE
-
storagePermission()
→ Future<void>
-
Request storage permission for Android usage
-
toString()
→ String
-
A string representation of this object.
inherited
-
watch()
→ void
-
Start watching capture behavior