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