File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class PlatformChannelHelper {
1313 final _keyInvokeMethodQuitApp = 'quit_app' ;
1414 final _keyInvokeMethodTakeScreenshot = 'take_screenshot' ;
1515 final _keyInvokeMethodCheckPermissionScreenRecording = 'check_permission_screen_recording' ;
16+ final _keyInvokeMethodCheckPermissionAccessibility = 'check_permission_accessibility' ;
1617
1718 // Event channel
1819 final _eventChannelName = 'dipantau/event' ;
@@ -109,4 +110,14 @@ class PlatformChannelHelper {
109110 return false ;
110111 }
111112 }
113+
114+ Future <bool ?> checkPermissionAccessibility () async {
115+ try {
116+ final result = await _methodChannel.invokeMethod <bool >(_keyInvokeMethodCheckPermissionAccessibility);
117+ return result;
118+ } catch (error) {
119+ debugPrint ('Error check permission accessibility: $error ' );
120+ return false ;
121+ }
122+ }
112123}
You can’t perform that action at this time.
0 commit comments