Exemplo n.º 1
0
        public bool Stop()
        {
            StopScript();

            if (!ServiceStarted)
            {
                return false;
            }

            _sshotService.Dispose();
            _sshotService = null;

            _gestureService.Dispose();
            _gestureService = null;

            _superUser?.Dispose();
            _superUser = null;

            ScreenshotManager.ReleaseMemory();
            ImageLocator.ClearCache();

            _windowManager.RemoveView(_layout);
            _windowManager.RemoveView(_highlightView);
            ServiceStarted = false;

            HideForegroundNotification();

            return true;
        }
        public RootScreenshotService(SuperUser SuperUser)
        {
            _superUser = SuperUser;

            _imgPath = Path.Combine(AutomataApi.StorageDir, "sshot.raw");
        }
Exemplo n.º 3
0
 public RootGestures(SuperUser SuperUser)
 {
     _superUser = SuperUser;
 }