chrome.system.memory
- Description
The
chrome.system.memory
API. - Permissions
system.memory
Summary
- Types
- Methods
Types
MemoryInfo
Properties
- availableCapacity
number
The amount of available capacity, in bytes.
- capacity
number
The total amount of physical memory capacity, in bytes.
Methods
getInfo
chrome.system.memory.getInfo(
callback?: function,
)
Promise
Get physical memory information.
Parameters
- callback
function optional
The
callback
parameter looks like:(info: MemoryInfo) => void
- info
Returns
Promise<MemoryInfo>
PendingThis only returns a
Promise
when thecallback
parameter is not specified, and with MV3+. The type inside thePromise
is the same as the 1st argument tocallback
.