Join Scott Peterson for an in-depth discussion in this video Universal Windows Platform background tasks, part of Developing UWP Apps: 9 Background Tasks.
- [Narrator] At its core, the idea of a background task is simply to perform actions when an app is suspended or terminated, meaning it's not actively being interacted with by a user, and have some lightweight mechanism in place to evaluate and process information without a user needing to be involved. For example, let's say you only care about Twitter activity when you get new mentions or followers, or you just want to know when your favorite sports team scores a goal, or maybe you're having a real-time chat conversation and just want to see the latest reply instead of sitting idly watching the conversation thread.
Or better yet, maybe you have a huge processor-intensive maintenance task you want to run every night at 3 a.m. But only if you're connected to the internet and only if your battery has a full charge. These are the types of scenarios that the Windows Universal Platform has in mind, and for which it provides a simple, powerful mechanism for enabling this type of lightweight code to run in the background.
Note: This course was created by Wintellect. We are pleased to host this training in our library.