コード例 #1
0
        protected override void OnDisappearing()
        {
            if (_syncIndicator)
            {
                MessagingCenter.Unsubscribe <Application, bool>(Application.Current, "SyncCompleted");
                MessagingCenter.Unsubscribe <Application>(Application.Current, "SyncStarted");
            }

            if (_syncIndicator)
            {
                IsBusy = false;
            }

            if (_updateActivity)
            {
                _lockService.UpdateLastActivity();
            }

            base.OnDisappearing();
            _deviceActionService.DismissKeyboard();
        }