Jaa


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 const& value);
public static void EnablePrelaunch(bool value);
function enablePrelaunch(value)
Public Shared Sub EnablePrelaunch (value As Boolean)

Parameters

value
Boolean

bool

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

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

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.

Applies to