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