BackgroundActivatedEventHandler BackgroundActivatedEventHandler BackgroundActivatedEventHandler BackgroundActivatedEventHandler BackgroundActivatedEventHandler Delegate

Definition

Provides info when a background task activates the app.

public : delegate void BackgroundActivatedEventHandler(Platform::Object sender, IBackgroundActivatedEventArgs eventArgs)
struct BackgroundActivatedEventHandler : winrt::Windows::Foundation::IUnknown
{
   BackgroundActivatedEventHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> BackgroundActivatedEventHandler(L lambda);
   template <typename F> BackgroundActivatedEventHandler(F* function);
   template <typename O, typename M> BackgroundActivatedEventHandler(O* object, M method);
   void operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::ApplicationModel::Activation::IBackgroundActivatedEventArgs const& eventArgs) const;
};
public delegate void BackgroundActivatedEventHandler(Object sender, IBackgroundActivatedEventArgs eventArgs)
Public Delegate Sub BackgroundActivatedEventHandler(sender As Object, eventArgs As IBackgroundActivatedEventArgs)
var backgroundActivatedEventHandler = function(sender, eventArgs) {

 /* Your code */

}

Parameters

sender
Object Object Object

The object that triggered the event.

Attributes

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)