BatteryStatusChangedEventArgs

Namespace: XPlat.Device.Power

Defines an event argument for when the battery status changes.

public class BatteryStatusChangedEventArgs : EventArgs

Supported platforms

Platform

Version

.NET Standard

2.0

Xamarin.Android

9.0

Xamarin.iOS

1.0

UWP

10.0.16299

Constructors

BatteryStatusChangedEventArgs(BatteryStatus, int)

Parameters

batteryStatus (BatteryStatus)

The status of the battery.

remainingChargePercent (int)

The remaining battery charge as a percentage.

Properties

BatteryStatus

Gets the status of the battery.

public BatteryStatus BatteryStatus { get; }

RemainingChargePercent

Gets the remaining battery charge as a percentage.

public int RemainingChargePercent { get; }

CheckTime

Gets the time the status change check occurred.

public DateTime CheckTime { get; }

Last updated