예제 #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;
        }
        void OnScriptExit(string Message = null)
        {
            _scriptCtrlBtn.Post(() =>
            {
                SetScriptControlBtnIcon(Resource.Drawable.ic_play);
            });

            ImageLocator.ClearSupportCache();

            _entryPoint = null;

            _scriptStarted = false;
        }