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