SystemHealthManager.GetSupportedPowerMonitors(IExecutor, IConsumer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.