Skip to content

Commit 8d0a7f9

Browse files
authored
background tasks (#3756)
1 parent 0b28a84 commit 8d0a7f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hub/apps/windows-app-sdk/migrate-to-windows-app-sdk/guides/applifecycle.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Application lifecycle functionality migration
33
description: This topic contains migration guidance in the application lifecycle area.
44
ms.topic: article
5-
ms.date: 07/05/2022
5+
ms.date: 09/06/2023
66
keywords: Windows, App, SDK, migrate, migrating, migration, port, porting, application lifecycle, applifecycle, application, lifecycle
77
ms.author: stwhi
88
author: stevewhims
@@ -27,7 +27,9 @@ This topic contains migration guidance in the application lifecycle area.
2727

2828
Universal Windows Platform (UWP) apps are single-instanced by default; Windows App SDK (WinUI 3) apps are multi-instanced by default.
2929

30-
A UWP app has **App** methods such as **OnFileActivated**, **OnSearchActivated**, and **OnActivated** that implicitly tell you how the app was activated; In a Windows App SDK app, in **App.OnLaunched** (or in any method), call ([**AppInstance.GetActivatedEventArgs**](/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.getactivatedeventargs)) to retrieve the activated event args, and check them to determine how the app was activated.
30+
A UWP app has **App** methods such as **OnFileActivated**, **OnSearchActivated**, **OnActivated**, and **OnBackgroundActivated** that implicitly tell you how the app was activated; In a Windows App SDK app, in **App.OnLaunched** (or in any method), call ([**AppInstance.GetActivatedEventArgs**](/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.getactivatedeventargs)) to retrieve the activated event args, and check them to determine how the app was activated.
31+
32+
Also see the *Background tasks* row in the table in the [What's supported when migrating from UWP to WinUI 3](/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/what-is-supported) topic.
3133

3234
## Single-instanced apps
3335

0 commit comments

Comments
 (0)