CoreApplication.BackgroundActivated CoreApplication.BackgroundActivated CoreApplication.BackgroundActivated CoreApplication.BackgroundActivated Event

Definition

Fired when your app is activated by a background trigger.

public : event EventHandler<BackgroundActivatedEventArgs> BackgroundActivated
// Register
event_token BackgroundActivated(EventHandler<BackgroundActivatedEventArgs> const& handler) const;

// Revoke with event_token
void BackgroundActivated(event_token const& cookie) const;

// Revoke with event_revoker
BackgroundActivated_revoker BackgroundActivated(auto_revoke_t, EventHandler<BackgroundActivatedEventArgs> const& handler) const;
public event EventHandler<BackgroundActivatedEventArgs> BackgroundActivated
Public Event BackgroundActivated As EventHandler (Of BackgroundActivatedEventArgs)

Remarks

Register your background triggers with BackgroundTaskBuilder, but do not set the TaskEntryPoint. This will enable this event to fire when your trigger is signaled. The event handler has a BackgroundActivatedEventArgs parameter which contains everything that the IBackgroundTask.Run method delivers.

Tip

By the time an app enters the background state, none of its UI is visible.

See also