Udostępnij za pośrednictwem


PowerManager.IsAllowedInLowPowerStandby Method

Definition

Overloads

IsAllowedInLowPowerStandby(LowPowerStandbyAllowedReasons)

Returns true if Low Power Standby is disabled (so Low Power Standby does not restrict apps), or apps may be automatically exempt from Low Power Standby restrictions for the given reason.

IsAllowedInLowPowerStandby(String)

Returns true if Low Power Standby is disabled (so Low Power Standby does not restrict apps), or apps are allowed to use a given feature during Low Power Standby.

IsAllowedInLowPowerStandby(LowPowerStandbyAllowedReasons)

Returns true if Low Power Standby is disabled (so Low Power Standby does not restrict apps), or apps may be automatically exempt from Low Power Standby restrictions for the given reason.

[Android.Runtime.Register("isAllowedInLowPowerStandby", "(I)Z", "GetIsAllowedInLowPowerStandby_IHandler", ApiSince=34)]
public virtual bool IsAllowedInLowPowerStandby (Android.OS.LowPowerStandbyAllowedReasons reason);
[<Android.Runtime.Register("isAllowedInLowPowerStandby", "(I)Z", "GetIsAllowedInLowPowerStandby_IHandler", ApiSince=34)>]
abstract member IsAllowedInLowPowerStandby : Android.OS.LowPowerStandbyAllowedReasons -> bool
override this.IsAllowedInLowPowerStandby : Android.OS.LowPowerStandbyAllowedReasons -> bool

Parameters

Returns

Attributes

Remarks

Returns true if Low Power Standby is disabled (so Low Power Standby does not restrict apps), or apps may be automatically exempt from Low Power Standby restrictions for the given reason.

The system may exempt apps from Low Power Standby restrictions when using allowed features. For example, if #LOW_POWER_STANDBY_ALLOWED_REASON_VOICE_INTERACTION is allowed, then apps with active voice interaction sessions are exempt from restrictions.

Java documentation for android.os.PowerManager.isAllowedInLowPowerStandby(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

IsAllowedInLowPowerStandby(String)

Returns true if Low Power Standby is disabled (so Low Power Standby does not restrict apps), or apps are allowed to use a given feature during Low Power Standby.

[Android.Runtime.Register("isAllowedInLowPowerStandby", "(Ljava/lang/String;)Z", "GetIsAllowedInLowPowerStandby_Ljava_lang_String_Handler", ApiSince=34)]
public virtual bool IsAllowedInLowPowerStandby (string feature);
[<Android.Runtime.Register("isAllowedInLowPowerStandby", "(Ljava/lang/String;)Z", "GetIsAllowedInLowPowerStandby_Ljava_lang_String_Handler", ApiSince=34)>]
abstract member IsAllowedInLowPowerStandby : string -> bool
override this.IsAllowedInLowPowerStandby : string -> bool

Parameters

feature
String

Returns

Attributes

Remarks

Returns true if Low Power Standby is disabled (so Low Power Standby does not restrict apps), or apps are allowed to use a given feature during Low Power Standby.

Java documentation for android.os.PowerManager.isAllowedInLowPowerStandby(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to