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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.