Background Agent Types

Windows Phone supports three types of background agents: ScheduledTaskAgent, AudioPlayerAgent, and AudioStreamingAgent (see Figure 32.7).

Image

FIGURE 32.7 BackgroundAgent types.

Audio player agents are specialized agents used to retrieve audio files and coordinate the playback of background audio. AudioPlayerAgent and AudioStreamingAgent are explored in Chapter 34, “Coordinating Background Audio Playback.”

ScheduledTaskAgent is an abstract class, which you subclass to provide your own logic to be performed whenever the OS chooses to invoke your agent. When invoked, the OS passes the registered task object to the task agent, ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.