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

Interface ISystemMemoryStats

interface ISystemMemoryStats
Extends com.amazon.apmf.IStandard Device-wide memory stats. Provides total amount of usable memory, of available memory, and if the device is a low memory device. Built from ISystemResource::makeSystemMemoryStats().

Methods

getTotalBytes()

i64 getTotalBytes()
Get total memory.

Returns

i64 total memory in bytes.

Throws


getAvailableBytes()

i64 getAvailableBytes()
Get available memory. Memory available collectively for apps and system services.

Returns

i64 total memory in bytes.

Throws


isLowMemoryDevice()

bool isLowMemoryDevice()
Flag that a device is configured as a low memory device. Product has the option to statically set the device as a low memory device. Low memory device is a hint to the app to use low allocation. One use of this flag is to determine limits for media/asset caching.

Returns

bool whether this device is a low memory device.
Last modified on October 29, 2026