Table of Contents

Class PowerManager

Namespace
Android.Os
Assembly
MASES.Netdroid.dll
public class PowerManager : JVMBridgeBase<PowerManager>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<PowerManager>
PowerManager
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<PowerManager>.IsAssignableFrom(IJavaType)
JVMBridgeBase<PowerManager>.IsAssignableFrom<T>()
JVMBridgeBase<PowerManager>.Execute<T>(params T[])
JVMBridgeBase<PowerManager>.DynBridgeClazz
JVMBridgeBase<PowerManager>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

int

ACTION_DEVICE_IDLE_MODE_CHANGED

public static String ACTION_DEVICE_IDLE_MODE_CHANGED { get; }

Property Value

String

ACTION_DEVICE_LIGHT_IDLE_MODE_CHANGED

public static String ACTION_DEVICE_LIGHT_IDLE_MODE_CHANGED { get; }

Property Value

String

ACTION_LOW_POWER_STANDBY_ENABLED_CHANGED

public static String ACTION_LOW_POWER_STANDBY_ENABLED_CHANGED { get; }

Property Value

String

ACTION_LOW_POWER_STANDBY_POLICY_CHANGED

public static String ACTION_LOW_POWER_STANDBY_POLICY_CHANGED { get; }

Property Value

String

ACTION_POWER_SAVE_MODE_CHANGED

public static String ACTION_POWER_SAVE_MODE_CHANGED { get; }

Property Value

String

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

FEATURE_WAKE_ON_LAN_IN_LOW_POWER_STANDBY

public static String FEATURE_WAKE_ON_LAN_IN_LOW_POWER_STANDBY { get; }

Property Value

String

FULL_WAKE_LOCK

[Obsolete]
public static int FULL_WAKE_LOCK { get; }

Property Value

int

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF

public static int LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF { get; }

Property Value

int

LOCATION_MODE_FOREGROUND_ONLY

public static int LOCATION_MODE_FOREGROUND_ONLY { get; }

Property Value

int

LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF

public static int LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF { get; }

Property Value

int

LOCATION_MODE_NO_CHANGE

public static int LOCATION_MODE_NO_CHANGE { get; }

Property Value

int

LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF

public static int LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF { get; }

Property Value

int

LOW_POWER_STANDBY_ALLOWED_REASON_ONGOING_CALL

public static int LOW_POWER_STANDBY_ALLOWED_REASON_ONGOING_CALL { get; }

Property Value

int

LOW_POWER_STANDBY_ALLOWED_REASON_TEMP_POWER_SAVE_ALLOWLIST

public static int LOW_POWER_STANDBY_ALLOWED_REASON_TEMP_POWER_SAVE_ALLOWLIST { get; }

Property Value

int

LOW_POWER_STANDBY_ALLOWED_REASON_VOICE_INTERACTION

public static int LOW_POWER_STANDBY_ALLOWED_REASON_VOICE_INTERACTION { get; }

Property Value

int

ON_AFTER_RELEASE

public static int ON_AFTER_RELEASE { get; }

Property Value

int

PARTIAL_WAKE_LOCK

public static int PARTIAL_WAKE_LOCK { get; }

Property Value

int

PROXIMITY_SCREEN_OFF_WAKE_LOCK

public static int PROXIMITY_SCREEN_OFF_WAKE_LOCK { get; }

Property Value

int

RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY

public static int RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY { get; }

Property Value

int

SCREEN_BRIGHT_WAKE_LOCK

[Obsolete]
public static int SCREEN_BRIGHT_WAKE_LOCK { get; }

Property Value

int

SCREEN_DIM_WAKE_LOCK

[Obsolete]
public static int SCREEN_DIM_WAKE_LOCK { get; }

Property Value

int

THERMAL_STATUS_CRITICAL

public static int THERMAL_STATUS_CRITICAL { get; }

Property Value

int

THERMAL_STATUS_EMERGENCY

public static int THERMAL_STATUS_EMERGENCY { get; }

Property Value

int

THERMAL_STATUS_LIGHT

public static int THERMAL_STATUS_LIGHT { get; }

Property Value

int

THERMAL_STATUS_MODERATE

public static int THERMAL_STATUS_MODERATE { get; }

Property Value

int

THERMAL_STATUS_NONE

public static int THERMAL_STATUS_NONE { get; }

Property Value

int

THERMAL_STATUS_SEVERE

public static int THERMAL_STATUS_SEVERE { get; }

Property Value

int

THERMAL_STATUS_SHUTDOWN

public static int THERMAL_STATUS_SHUTDOWN { get; }

Property Value

int

Methods

AddThermalStatusListener(OnThermalStatusChangedListener)

public void AddThermalStatusListener(PowerManager.OnThermalStatusChangedListener arg0)

Parameters

arg0 PowerManager.OnThermalStatusChangedListener

PowerManager.OnThermalStatusChangedListener

AddThermalStatusListener(Executor, OnThermalStatusChangedListener)

public void AddThermalStatusListener(Executor arg0, PowerManager.OnThermalStatusChangedListener arg1)

Parameters

arg0 Executor

Executor

arg1 PowerManager.OnThermalStatusChangedListener

PowerManager.OnThermalStatusChangedListener

GetBatteryDischargePrediction()

public Duration GetBatteryDischargePrediction()

Returns

Duration

Duration

GetCurrentThermalStatus()

public int GetCurrentThermalStatus()

Returns

int

int

GetLocationPowerSaveMode()

public int GetLocationPowerSaveMode()

Returns

int

int

GetThermalHeadroom(int)

public float GetThermalHeadroom(int arg0)

Parameters

arg0 int

int

Returns

float

float

GetThermalHeadroomThresholds()

public Map<Integer, Float> GetThermalHeadroomThresholds()

Returns

Map<Integer, Float>

Map

IsAllowedInLowPowerStandby(String)

public bool IsAllowedInLowPowerStandby(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

IsAllowedInLowPowerStandby(int)

public bool IsAllowedInLowPowerStandby(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

IsBatteryDischargePredictionPersonalized()

public bool IsBatteryDischargePredictionPersonalized()

Returns

bool

bool

IsDeviceIdleMode()

public bool IsDeviceIdleMode()

Returns

bool

bool

IsDeviceLightIdleMode()

public bool IsDeviceLightIdleMode()

Returns

bool

bool

IsExemptFromLowPowerStandby()

public bool IsExemptFromLowPowerStandby()

Returns

bool

bool

IsIgnoringBatteryOptimizations(String)

public bool IsIgnoringBatteryOptimizations(String arg0)

Parameters

arg0 String

String

Returns

bool

bool

IsInteractive()

public bool IsInteractive()

Returns

bool

bool

IsLowPowerStandbyEnabled()

public bool IsLowPowerStandbyEnabled()

Returns

bool

bool

IsPowerSaveMode()

public bool IsPowerSaveMode()

Returns

bool

bool

IsRebootingUserspaceSupported()

[Obsolete]
public bool IsRebootingUserspaceSupported()

Returns

bool

bool

IsScreenOn()

[Obsolete]
public bool IsScreenOn()

Returns

bool

bool

IsSustainedPerformanceModeSupported()

public bool IsSustainedPerformanceModeSupported()

Returns

bool

bool

IsWakeLockLevelSupported(int)

public bool IsWakeLockLevelSupported(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

NewWakeLock(int, String)

public PowerManager.WakeLock NewWakeLock(int arg0, String arg1)

Parameters

arg0 int

int

arg1 String

String

Returns

PowerManager.WakeLock

PowerManager.WakeLock

Reboot(String)

public void Reboot(String arg0)

Parameters

arg0 String

String

RemoveThermalStatusListener(OnThermalStatusChangedListener)

public void RemoveThermalStatusListener(PowerManager.OnThermalStatusChangedListener arg0)

Parameters

arg0 PowerManager.OnThermalStatusChangedListener

PowerManager.OnThermalStatusChangedListener