/// <summary>
        /// Handle LowBatter event
        /// </summary>
        /// <param name="e">An event data</param>
        protected override void OnLowBattery(LowBatteryEventArgs e)
        {
            base.OnLowBattery(e);
            var status = (LowBatteryStatus)e.LowBatteryStatus;

            _app.ApplicationInfomation.UpdateLowBatteryLEDColor(status);
        }
 /// <summary>
 /// Overrides this method if you want to handle behavior.
 /// </summary>
 /// <since_tizen> 3 </since_tizen>
 protected override void OnLowBattery(LowBatteryEventArgs e)
 {
     base.OnLowBattery(e);
 }
 /// <summary>
 /// Overrides this method if you want to handle behavior.
 /// </summary>
 protected override void OnLowBattery(LowBatteryEventArgs e)
 {
     Log.Debug("NUI", "OnLowBattery() is called!");
     base.OnLowBattery(e);
 }
Exemple #4
0
 /// <summary>
 /// Overrides this method if want to handle behavior.
 /// </summary>
 protected virtual void OnLowBattery(LowBatteryEventArgs e)
 {
 }
 /// <summary>
 /// Overrides this method if want to handle behavior.
 /// </summary>
 protected override void OnLowBattery(LowBatteryEventArgs e)
 {
     base.OnLowBattery(e);
     LOG("OnLowBattery() is called!");
 }
Exemple #6
0
 void device_LowBattery(object sender, LowBatteryEventArgs e)
 {
     SetBatteryStatus(e.batteryLevel == BatteryStatus.Low || e.batteryLevel == BatteryStatus.VeryLow);
 }
Exemple #7
0
 protected override void OnLowBattery(LowBatteryEventArgs e)
 {
     base.OnLowBattery(e);
     Current.Services?.InvokeLifecycleEvents <TizenLifecycle.OnLowBattery>(del => del(this, e));
 }