Facepunch.Steamworks Wiki

Steamworks.SteamUtils.UsingBatteryPower

Syntax

static bool UsingBatteryPower { get; }

Description

Returns true if we're using a battery (ie, a laptop not plugged in)