Memory

With the static utility class memory, the working memory size, as well as the storage estimate can be queried. The working memory size is only an approximate number to protect users with low- and high-end devices.

Examples:

// Gibt aus, wie viel Speicher das Gerät ungefähr hat.
Memory.getDeviceMemory(System.out::println);

// Gibt die Storage Quota und Storage Usage aus
Memory.getStorageEstimate(estimate -> {
  System.out.println("Quota: " + estimate.getQuota());
  System.out.println("Usage: " + estimate.getUsage());
});