Example #1
0
        public string GetStatusDesc()
        {
            BatteryStatus bs = SystemInfo.batteryStatus;

            if (!m_StatusDescDic.TryGetValue(bs, out string desc))
            {
                desc = bs.ToString();
                m_StatusDescDic.Add(bs, desc);
            }
            return(desc);
        }
        public string GetStatus()
        {
            BatteryStatus status = (BatteryStatus)batteryStatus.GetIntExtra(BatteryManager.ExtraStatus, -1);

            return(status.ToString());
        }