ContentPrefetchTrigger ContentPrefetchTrigger ContentPrefetchTrigger ContentPrefetchTrigger ContentPrefetchTrigger Class

Definition

Provides the ability to run custom handlers when prefetching web resources.

public : sealed class ContentPrefetchTrigger : IBackgroundTrigger
struct winrt::Windows::ApplicationModel::Background::ContentPrefetchTrigger : IBackgroundTrigger
public sealed class ContentPrefetchTrigger : IBackgroundTrigger
Public NotInheritable Class ContentPrefetchTrigger Implements IBackgroundTrigger
var contentPrefetchTrigger = new contentPrefetchTrigger(waitInterval);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Developers can attach a handler to preload and cache web content so an app can launch and have its content refreshed and up to date. Accessing cached content helps reduce app activation time by not having to queue costly web requests.

In addition to custom tasks, the existing ContentPrefetcher API is still available and can be used instead of the custom task when the prerequisite work only involves preloading and caching content from a fixed or dynamic set of URIs.

Constructors

ContentPrefetchTrigger() ContentPrefetchTrigger() ContentPrefetchTrigger() ContentPrefetchTrigger() ContentPrefetchTrigger()

Initializes a new instance of the ContentPrefetchTrigger class.

ContentPrefetchTrigger(TimeSpan) ContentPrefetchTrigger(TimeSpan) ContentPrefetchTrigger(TimeSpan) ContentPrefetchTrigger(TimeSpan) ContentPrefetchTrigger(TimeSpan)

Initializes a new instance of the ContentPrefetchTrigger class using a specified time interval.

Properties

WaitInterval WaitInterval WaitInterval WaitInterval WaitInterval

Retrieves the time interval for prefetching web content.

See also