BatteryManager.isCharging

Please refer to the Intent.createFromParcel/battery hook documentation.

CollectionFif
GroupRead battery
NameBatteryManager.isCharging
AuthorFif
Version1
Updated (UTC)2018-10-10 01:34:35
Created (UTC)2018-10-10 01:34:35
Downloads870
Class nameandroid.os.BatteryManager
Method nameisCharging
Parameter types
Return typeboolean
Min SDK23
Max SDK999
Min APK0
Max APK2147483647
Excluded packages-
EnabledYes
OptionalNo
UsageYes
NotifyNo
Settings-
-- BatteryManager.* is a set of Lua hook definition designed to work                     
-- with XPrivacyLua.

-- BatteryManager.* is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.

-- BatteryManager.* is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.

function after(hook, param)
  local result = param:getResult()
  if result == nil then
    return false
  end

  if result ~= false then
    param:setResult(false)
    return true, tostring(result), tostring(false)
  else
    return false
  end
end