Skip to main content
MemoryManager.AppMemoryUsageDecreased | appmemoryusagedecreased event

Raised when the app's memory consumption has decreased to a lower value in the AppMemoryUsageLevel enumeration.

Syntax


function onAppMemoryUsageDecreased(eventArgs) { /* Your code */ }
 
// addEventListener syntax
memoryManager.addEventListener("appmemoryusagedecreased", onAppMemoryUsageDecreased);
memoryManager.removeEventListener("appmemoryusagedecreased", onAppMemoryUsageDecreased);
 
- or -

memoryManager.onappmemoryusagedecreased = onAppMemoryUsageDecreased;

public static event EventHandler<object> AppMemoryUsageDecreased

Public Shared Event AppMemoryUsageDecreased As EventHandler(Of Object)

public:
static event EventHandler<object>^ AppMemoryUsageDecreased {
   Windows::Foundation::EventRegistrationToken add(EventHandler<object>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}

Event information

DelegateEventHandler [JavaScript] | System.EventHandler<Object> [.NET] | Windows.Foundation.EventHandler<Object> [C++]

Requirements ( device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.System
Windows::System [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.System
Windows::System [C++]

Metadata

Windows.winmd

See also

MemoryManager

 

 

Microsoft is conducting an online survey to understand your opinion of the MSDN Web site. If you choose to participate, the online survey will be presented to you when you leave the MSDN Web site.

Would you like to participate?