Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct MemoryLevel

sealed struct MemoryLevel
Represents different memory levels that application components may be notified of. Components take different actions depending on the reported MemoryLevel.

Fields

Constants

MEMORY_LEVEL_APP_BACKGROUND

MemoryLevel = {"APP_BACKGROUND"}
Indicates that the process has no visible UI and must free all UI-related resources.

MEMORY_LEVEL_APP_COMPLETE

MemoryLevel = {"APP_COMPLETE"}
Indicates that the process must free maximum resources to avoid termination.

MEMORY_LEVEL_DEVICE_MODERATE

MemoryLevel = {"DEVICE_MODERATE"}
Indicates that the device may soon become low on resources. The app process is not suspended, but should reduce resource consumption to avoid device UX impact and maintain device health.

MEMORY_LEVEL_DEVICE_LOW

MemoryLevel = {"DEVICE_LOW"}
Indicates that the device is low on resources. The app process is not suspended, but must reduce resource consumption to avoid device UX impact and risk of app termination.

MEMORY_LEVEL_DEVICE_CRITICAL

MemoryLevel = {"DEVICE_CRITICAL"}
Indicates that the device is critically low on resources. The app process is not suspended, but must immediately reduce resource consumption to avoid UX impact and risk of imminent app termination.
Last modified on October 29, 2026