CoreApplication.EnablePrelaunch(Boolean) CoreApplication.EnablePrelaunch(Boolean) CoreApplication.EnablePrelaunch(Boolean) CoreApplication.EnablePrelaunch(Boolean) Method

Definition

Enable or disable the operating system's ability to prelaunch your app.

public : static void EnablePrelaunch(bool value)
static void EnablePrelaunch(bool value) const;
public static void EnablePrelaunch(Boolean value)
Public Shared Sub EnablePrelaunch(value As Boolean)

Parameters

value
Boolean Boolean

True to enable prelaunch for your app; false, otherwise.

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

When available system resources allow, the startup performance of UWP apps is improved by proactively launching the user’s most frequently used UWP apps in the background. A prelaunched app is put into the suspended state shortly after it is launched. When the user invokes the app, the app is resumed by bringing it from the suspended state to the running state--which is faster than launching the app cold.

Windows 10 automatically prelaunched UWP apps. In Windows 10, version 1607, UWP apps must opt-in to be prelaunched. You will typically make this call during the first run of your app although you may call the function multiple times and with different values without harm.