Liero
Liero

Reputation: 27370

Directly calling background task in UWP app

I'm preparing for the new microsoft certification exam Universal Windows Platform – App Data, Services, and Coding Patterns

Is it possible to directly call background task from Windows 10 (Universal WIndows) app? As far as I know, only triggers like SystemTrigger or TimerTrigger can trigger the execution of background task

In the skill mesuread section from the link is:

Implement background tasks

Create a background task, register a background task, set and respond to triggers, debug a background task, implement a lock screen app, share data/events between an app and its background tasks; directly calling a background task

The last point, directly calling a background task, what does it mean?

Upvotes: 2

Views: 3101

Answers (1)

gregkalapos
gregkalapos

Reputation: 3619

I think that would be the ApplicationTrigger class.

See here: https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.background.applicationtrigger.aspx

This is btw new in UWP. In A Windows (Phone) Store 8.1 app there was no way to trigger a background task directly from the app.

Upvotes: 4

Related Questions