PowerManager.AddThermalStatusListener 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.
Overloads
AddThermalStatusListener(PowerManager+IOnThermalStatusChangedListener) |
This function adds a listener for thermal status change, listen call back will be enqueued tasks on the main thread |
AddThermalStatusListener(IExecutor, PowerManager+IOnThermalStatusChangedListener) |
This function adds a listener for thermal status change, listen call back will be enqueued tasks on the main thread |
AddThermalStatusListener(PowerManager+IOnThermalStatusChangedListener)
This function adds a listener for thermal status change, listen call back will be enqueued tasks on the main thread
[Android.Runtime.Register("addThermalStatusListener", "(Landroid/os/PowerManager$OnThermalStatusChangedListener;)V", "GetAddThermalStatusListener_Landroid_os_PowerManager_OnThermalStatusChangedListener_Handler", ApiSince=29)]
public virtual void AddThermalStatusListener (Android.OS.PowerManager.IOnThermalStatusChangedListener listener);
[<Android.Runtime.Register("addThermalStatusListener", "(Landroid/os/PowerManager$OnThermalStatusChangedListener;)V", "GetAddThermalStatusListener_Landroid_os_PowerManager_OnThermalStatusChangedListener_Handler", ApiSince=29)>]
abstract member AddThermalStatusListener : Android.OS.PowerManager.IOnThermalStatusChangedListener -> unit
override this.AddThermalStatusListener : Android.OS.PowerManager.IOnThermalStatusChangedListener -> unit
Parameters
listener to be added,
- Attributes
Remarks
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
AddThermalStatusListener(IExecutor, PowerManager+IOnThermalStatusChangedListener)
This function adds a listener for thermal status change, listen call back will be enqueued tasks on the main thread
[Android.Runtime.Register("addThermalStatusListener", "(Ljava/util/concurrent/Executor;Landroid/os/PowerManager$OnThermalStatusChangedListener;)V", "GetAddThermalStatusListener_Ljava_util_concurrent_Executor_Landroid_os_PowerManager_OnThermalStatusChangedListener_Handler", ApiSince=29)]
public virtual void AddThermalStatusListener (Java.Util.Concurrent.IExecutor executor, Android.OS.PowerManager.IOnThermalStatusChangedListener listener);
[<Android.Runtime.Register("addThermalStatusListener", "(Ljava/util/concurrent/Executor;Landroid/os/PowerManager$OnThermalStatusChangedListener;)V", "GetAddThermalStatusListener_Ljava_util_concurrent_Executor_Landroid_os_PowerManager_OnThermalStatusChangedListener_Handler", ApiSince=29)>]
abstract member AddThermalStatusListener : Java.Util.Concurrent.IExecutor * Android.OS.PowerManager.IOnThermalStatusChangedListener -> unit
override this.AddThermalStatusListener : Java.Util.Concurrent.IExecutor * Android.OS.PowerManager.IOnThermalStatusChangedListener -> unit
Parameters
- executor
- IExecutor
listener to be added,
- Attributes
Remarks
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.