コード例 #1
0
ファイル: Application.iOS.cs プロジェクト: mikkelbu/Uno
        partial void OnResumingPartial()
        {
            if (_suspended)
            {
                _suspended = false;

                Resuming?.Invoke(this, null);
            }
        }
コード例 #2
0
		public override void WillEnterForeground(UIApplication application)
		{
			if(_suspended)
			{
				_suspended = false;

				Resuming?.Invoke(this, null);
			}
		}
コード例 #3
0
        public async Task ResumeAsync()
        {
            this.LogInfo();

            Resuming?.Invoke(this, EventArgs.Empty);

            // restore the navigation state
            await FrameLogic.LoadNavigationState(Id, _frame);

            // call the view-models OnResuming
            await SuspensionLogic.CallResumeAsync(CurrentViewModel as ISuspensionAware);

            Resumed?.Invoke(this, EventArgs.Empty);
        }
コード例 #4
0
        private void OnGatewayStateChanged(GatewayStatus newState)
        {
            switch (newState)
            {
            case GatewayStatus.Resuming:
                Resuming?.Invoke();
                break;

            case GatewayStatus.Reconnecting:
                Reconnecting?.Invoke();
                break;

            case GatewayStatus.Disconnected:
                LoggedOut?.Invoke();
                break;
            }
        }
コード例 #5
0
ファイル: CoreApplication.cs プロジェクト: mohaider/Uno
 /// <summary>
 /// Raises the <see cref="Resuming"/> event
 /// </summary>
 internal static void RaiseResuming()
 => Resuming?.Invoke(null, null);
コード例 #6
0
 private static void OnResuming(object?sender, HostResumingEventArgs e)
 {
     Resuming?.Invoke(sender, e);
 }
コード例 #7
0
 internal void OnResuming()
 {
     Resuming?.Invoke(null, null);
 }
コード例 #8
0
 partial void OnResumingPartial()
 {
     Resuming?.Invoke(null, null);
 }
コード例 #9
0
ファイル: AppLifecycle.cs プロジェクト: tmyt/InfiniteNote
 private void Current_LeavingBackground(object sender, LeavingBackgroundEventArgs e)
 {
     Resuming?.Invoke(this, e);
 }
コード例 #10
0
 private void App_Resuming(object sender, object e)
 {
     EventDispatcher.Dispatch(() => Resuming?.Invoke(this, e));
 }