Beispiel #1
0
 static string GetModel() =>
 IOKit.GetPlatformExpertPropertyValue <NSData>("model")?.ToString() ?? string.Empty;
Beispiel #2
0
 static void StartBatteryListeners()
 {
     powerSourceNotification = IOKit.CreatePowerSourceNotification(PowerSourceNotification);
     CFRunLoop.Current.AddSource(powerSourceNotification, CFRunLoop.ModeDefault);
 }