PerformanceHintManager.Session.SetPreferPowerEfficiency(Boolean) Method

Definition

This tells the session that these threads can be safely scheduled to prefer power efficiency over performance.

[Android.Runtime.Register("setPreferPowerEfficiency", "(Z)V", "GetSetPreferPowerEfficiency_ZHandler", ApiSince=35)]
public virtual void SetPreferPowerEfficiency (bool enabled);
[<Android.Runtime.Register("setPreferPowerEfficiency", "(Z)V", "GetSetPreferPowerEfficiency_ZHandler", ApiSince=35)>]
abstract member SetPreferPowerEfficiency : bool -> unit
override this.SetPreferPowerEfficiency : bool -> unit

Parameters

enabled
Boolean

The flag that sets whether this session uses power-efficient scheduling.

Attributes

Remarks

This tells the session that these threads can be safely scheduled to prefer power efficiency over performance.

Java documentation for android.os.PerformanceHintManager.Session.setPreferPowerEfficiency(boolean).

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