Constructor EdgeResourceSnapshot
EdgeResourceSnapshot(long?, bool?, EdgeThermalState, float?, bool?, EdgeMemoryPressure?)
One reading. Every nullable member means UNKNOWN, never "no".
AvailableMemoryBytes null on a desktop where GC.GetGCMemoryInfo() reports
nothing usable is not a refusal, and the session host's memory pre-flight is required to skip
its check rather than fail it.
public EdgeResourceSnapshot(long? AvailableMemoryBytes, bool? IsLowMemory, EdgeThermalState Thermal, float? ThermalHeadroom, bool? IsLowPowerMode, EdgeMemoryPressure? LastPressure)
Parameters
AvailableMemoryByteslong?Free memory the process may still take, or null if unknown.
IsLowMemorybool?Whether the OS considers itself low on memory, or null if unknown.
ThermalEdgeThermalStateThe thermal state; Unknown on desktop.
ThermalHeadroomfloat?Android's
GetThermalHeadroom(10), or null.IsLowPowerModebool?Apple's low-power-mode flag, or null.
LastPressureEdgeMemoryPressure?The latched value of LastPressure.