Class PowerManager
public class PowerManager : JVMBridgeBase<PowerManager>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<PowerManager>PowerManager
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<PowerManager>.IsAssignableFrom(IJavaType)JVMBridgeBase<PowerManager>.IsAssignableFrom<T>()JVMBridgeBase<PowerManager>.Execute<T>(params T[])JVMBridgeBase<PowerManager>.DynBridgeClazzJVMBridgeBase<PowerManager>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
PowerManager()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public PowerManager()
PowerManager(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public PowerManager(params object[] args)
Parameters
args
object[]
Properties
ACQUIRE_CAUSES_WAKEUP
[Obsolete]
public static int ACQUIRE_CAUSES_WAKEUP { get; }
Property Value
ACTION_DEVICE_IDLE_MODE_CHANGED
https://developer.android.com/reference/android/os/PowerManager.html#ACTION_DEVICE_IDLE_MODE_CHANGED
public static String ACTION_DEVICE_IDLE_MODE_CHANGED { get; }
Property Value
ACTION_DEVICE_LIGHT_IDLE_MODE_CHANGED
public static String ACTION_DEVICE_LIGHT_IDLE_MODE_CHANGED { get; }
Property Value
ACTION_LOW_POWER_STANDBY_ENABLED_CHANGED
public static String ACTION_LOW_POWER_STANDBY_ENABLED_CHANGED { get; }
Property Value
ACTION_LOW_POWER_STANDBY_POLICY_CHANGED
public static String ACTION_LOW_POWER_STANDBY_POLICY_CHANGED { get; }
Property Value
ACTION_POWER_SAVE_MODE_CHANGED
public static String ACTION_POWER_SAVE_MODE_CHANGED { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
FEATURE_WAKE_ON_LAN_IN_LOW_POWER_STANDBY
public static String FEATURE_WAKE_ON_LAN_IN_LOW_POWER_STANDBY { get; }
Property Value
FULL_WAKE_LOCK
[Obsolete]
public static int FULL_WAKE_LOCK { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF
public static int LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF { get; }
Property Value
LOCATION_MODE_FOREGROUND_ONLY
public static int LOCATION_MODE_FOREGROUND_ONLY { get; }
Property Value
LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF
public static int LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF { get; }
Property Value
LOCATION_MODE_NO_CHANGE
public static int LOCATION_MODE_NO_CHANGE { get; }
Property Value
LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF
public static int LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF { get; }
Property Value
LOW_POWER_STANDBY_ALLOWED_REASON_ONGOING_CALL
public static int LOW_POWER_STANDBY_ALLOWED_REASON_ONGOING_CALL { get; }
Property Value
LOW_POWER_STANDBY_ALLOWED_REASON_TEMP_POWER_SAVE_ALLOWLIST
public static int LOW_POWER_STANDBY_ALLOWED_REASON_TEMP_POWER_SAVE_ALLOWLIST { get; }
Property Value
LOW_POWER_STANDBY_ALLOWED_REASON_VOICE_INTERACTION
public static int LOW_POWER_STANDBY_ALLOWED_REASON_VOICE_INTERACTION { get; }
Property Value
ON_AFTER_RELEASE
public static int ON_AFTER_RELEASE { get; }
Property Value
PARTIAL_WAKE_LOCK
public static int PARTIAL_WAKE_LOCK { get; }
Property Value
PROXIMITY_SCREEN_OFF_WAKE_LOCK
public static int PROXIMITY_SCREEN_OFF_WAKE_LOCK { get; }
Property Value
RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY
public static int RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY { get; }
Property Value
SCREEN_BRIGHT_WAKE_LOCK
[Obsolete]
public static int SCREEN_BRIGHT_WAKE_LOCK { get; }
Property Value
SCREEN_DIM_WAKE_LOCK
[Obsolete]
public static int SCREEN_DIM_WAKE_LOCK { get; }
Property Value
THERMAL_STATUS_CRITICAL
public static int THERMAL_STATUS_CRITICAL { get; }
Property Value
THERMAL_STATUS_EMERGENCY
public static int THERMAL_STATUS_EMERGENCY { get; }
Property Value
THERMAL_STATUS_LIGHT
public static int THERMAL_STATUS_LIGHT { get; }
Property Value
THERMAL_STATUS_MODERATE
public static int THERMAL_STATUS_MODERATE { get; }
Property Value
THERMAL_STATUS_NONE
public static int THERMAL_STATUS_NONE { get; }
Property Value
THERMAL_STATUS_SEVERE
public static int THERMAL_STATUS_SEVERE { get; }
Property Value
THERMAL_STATUS_SHUTDOWN
public static int THERMAL_STATUS_SHUTDOWN { get; }
Property Value
Methods
AddThermalStatusListener(OnThermalStatusChangedListener)
public void AddThermalStatusListener(PowerManager.OnThermalStatusChangedListener arg0)
Parameters
AddThermalStatusListener(Executor, OnThermalStatusChangedListener)
public void AddThermalStatusListener(Executor arg0, PowerManager.OnThermalStatusChangedListener arg1)
Parameters
GetBatteryDischargePrediction()
https://developer.android.com/reference/android/os/PowerManager.html#getBatteryDischargePrediction()
public Duration GetBatteryDischargePrediction()
Returns
GetCurrentThermalStatus()
public int GetCurrentThermalStatus()
Returns
GetLocationPowerSaveMode()
public int GetLocationPowerSaveMode()
Returns
GetThermalHeadroom(int)
public float GetThermalHeadroom(int arg0)
Parameters
Returns
GetThermalHeadroomThresholds()
public Map<Integer, Float> GetThermalHeadroomThresholds()
Returns
IsAllowedInLowPowerStandby(String)
public bool IsAllowedInLowPowerStandby(String arg0)
Parameters
Returns
IsAllowedInLowPowerStandby(int)
https://developer.android.com/reference/android/os/PowerManager.html#isAllowedInLowPowerStandby(int)
public bool IsAllowedInLowPowerStandby(int arg0)
Parameters
Returns
IsBatteryDischargePredictionPersonalized()
public bool IsBatteryDischargePredictionPersonalized()
Returns
IsDeviceIdleMode()
public bool IsDeviceIdleMode()
Returns
IsDeviceLightIdleMode()
public bool IsDeviceLightIdleMode()
Returns
IsExemptFromLowPowerStandby()
public bool IsExemptFromLowPowerStandby()
Returns
IsIgnoringBatteryOptimizations(String)
public bool IsIgnoringBatteryOptimizations(String arg0)
Parameters
Returns
IsInteractive()
public bool IsInteractive()
Returns
IsLowPowerStandbyEnabled()
public bool IsLowPowerStandbyEnabled()
Returns
IsPowerSaveMode()
public bool IsPowerSaveMode()
Returns
IsRebootingUserspaceSupported()
https://developer.android.com/reference/android/os/PowerManager.html#isRebootingUserspaceSupported()
[Obsolete]
public bool IsRebootingUserspaceSupported()
Returns
IsScreenOn()
[Obsolete]
public bool IsScreenOn()
Returns
IsSustainedPerformanceModeSupported()
public bool IsSustainedPerformanceModeSupported()
Returns
IsWakeLockLevelSupported(int)
public bool IsWakeLockLevelSupported(int arg0)
Parameters
Returns
NewWakeLock(int, String)
public PowerManager.WakeLock NewWakeLock(int arg0, String arg1)
Parameters
Returns
Reboot(String)
public void Reboot(String arg0)
Parameters
RemoveThermalStatusListener(OnThermalStatusChangedListener)
public void RemoveThermalStatusListener(PowerManager.OnThermalStatusChangedListener arg0)