Udostępnij za pośrednictwem


PowerManager.AddThermalStatusListener Method

Definition

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
PowerManager.IOnThermalStatusChangedListener

listener to be added,

Attributes

Remarks

Java documentation for android.os.PowerManager.addThermalStatusListener(android.os.OnThermalStatusChangedListener).

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
PowerManager.IOnThermalStatusChangedListener

listener to be added,

Attributes

Remarks

Java documentation for android.os.PowerManager.addThermalStatusListener(android.os.OnThermalStatusChangedListener).

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