Ejemplo n.º 1
0
 public static IObservable <bool> WhenChargingChanged(this IPowerManager power)
 => power.WhenStatusChanged().Select(x =>
                                     x == PowerState.Charged ||
                                     x == PowerState.Charging
                                     );