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