bindings from macos

This commit is contained in:
CJ Pais 2026-03-14 09:07:28 +08:00
parent dfd445d422
commit 6ad588cba0

View file

@ -732,8 +732,10 @@ async updateRecordingRetentionPeriod(period: string) : Promise<Result<null, stri
}
},
/**
* Stub implementation for non-macOS platforms
* Always returns false since laptop detection is macOS-specific
* Checks if the Mac is a laptop by detecting battery presence
*
* This uses pmset to check for battery information.
* Returns true if a battery is detected (laptop), false otherwise (desktop)
*/
async isLaptop() : Promise<Result<boolean, string>> {
try {