device-memory-api
Mobile icon

Device Memory API

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 17 April 2024
 by 
0.0
 (0 ratings)
device-memory-api

Device Memory API

Documentation
1.0.1

The Device Memory API is a new web platform feature aimed at helping web developers deal with the modern device landscape, which returns how much RAM the device has in gigabytes, rounded down to the nearest power of two.

The capabilities of a client device largely depend on the amount of available RAM. Traditionally, developers had to use heuristics and either benchmark a device or infer device capabilities based on other factors like the device manufacturer or User Agent strings. 

The Device Memory API gives developers the ability to do two primary things:

  • Make runtime decisions about what resources to serve based on the returned device memory value (e.g. serve a "lite" version of an app to users on low-memory devices).
  • Report this value to an analytics service so you can better understand how device memory correlates with user behaviour, conversions, or other metrics important to your business.


Device Memory API is very simple to use, just take dependency DeviceMemoryAPI of module and invoke GetDeviceMemory client action, This action has an output parameter DeviceMemory which return memory in GB.


1.0.0

The Device Memory API is a new web platform feature aimed at helping web developers deal with the modern device landscape, which returns how much RAM the device has in gigabytes, rounded down to the nearest power of two.

The capabilities of a client device largely depend on the amount of available RAM. Traditionally, developers had to use heuristics and either benchmark a device or infer device capabilities based on other factors like the device manufacturer or User Agent strings. 

The Device Memory API gives developers the ability to do two primary things:

  • Make runtime decisions about what resources to serve based on the returned device memory value (e.g. serve a "lite" version of an app to users on low-memory devices).
  • Report this value to an analytics service so you can better understand how device memory correlates with user behavior, conversions, or other metrics important to your business.


Device Memory API is very simple to use, just take dependency DeviceMemoryAPI of module and invoke GetDeviceMemory client action, This action has an output parameter DeviceMemory which return memory in GB.