次の方法で共有


SystemHealthManager.GetSupportedPowerMonitors(IExecutor, IConsumer) Method

Definition

Asynchronously retrieves a list of supported PowerMonitor's, which include raw ODPM (on-device power rail monitor) rails and modeled energy consumers.

[Android.Runtime.Register("getSupportedPowerMonitors", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetSupportedPowerMonitors_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=35)]
public virtual void GetSupportedPowerMonitors (Java.Util.Concurrent.IExecutor? executor, Java.Util.Functions.IConsumer onResult);
[<Android.Runtime.Register("getSupportedPowerMonitors", "(Ljava/util/concurrent/Executor;Ljava/util/function/Consumer;)V", "GetGetSupportedPowerMonitors_Ljava_util_concurrent_Executor_Ljava_util_function_Consumer_Handler", ApiSince=35)>]
abstract member GetSupportedPowerMonitors : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit
override this.GetSupportedPowerMonitors : Java.Util.Concurrent.IExecutor * Java.Util.Functions.IConsumer -> unit

Parameters

executor
IExecutor

optional Handler to deliver the callback. If not supplied, the callback may be invoked on an arbitrary thread.

onResult
IConsumer

callback for the result

Attributes

Remarks

Asynchronously retrieves a list of supported PowerMonitor's, which include raw ODPM (on-device power rail monitor) rails and modeled energy consumers. If ODPM is unsupported on this device this method delivers an empty list.

Java documentation for android.os.health.SystemHealthManager.getSupportedPowerMonitors(java.util.concurrent.Executor, java.util.function.Consumer<java.util.List<android.os.PowerMonitor>>).

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