Language

IBinder.AddFrozenStateChangeCallback Method

Definition

This method provides a callback mechanism to notify about process frozen/unfrozen events.

[Android.Runtime.Register("addFrozenStateChangeCallback", "(Ljava/util/concurrent/Executor;Landroid/os/IBinder$FrozenStateChangeCallback;)V", "GetAddFrozenStateChangeCallback_Ljava_util_concurrent_Executor_Landroid_os_IBinder_FrozenStateChangeCallback_Handler:Android.OS.IBinder, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public virtual void AddFrozenStateChangeCallback(Java.Util.Concurrent.IExecutor executor, Android.OS.IBinder.IFrozenStateChangeCallback callback);
[<Android.Runtime.Register("addFrozenStateChangeCallback", "(Ljava/util/concurrent/Executor;Landroid/os/IBinder$FrozenStateChangeCallback;)V", "GetAddFrozenStateChangeCallback_Ljava_util_concurrent_Executor_Landroid_os_IBinder_FrozenStateChangeCallback_Handler:Android.OS.IBinder, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member AddFrozenStateChangeCallback : Java.Util.Concurrent.IExecutor * Android.OS.IBinder.IFrozenStateChangeCallback -> unit
override this.AddFrozenStateChangeCallback : Java.Util.Concurrent.IExecutor * Android.OS.IBinder.IFrozenStateChangeCallback -> unit

Parameters

executor
IExecutor

The executor on which to run the callback. This value cannot be null. Callback and listener events are dispatched through this Executor , providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor() . Otherwise, provide an Executor that dispatches to an appropriate thread.

callback
IBinder.IFrozenStateChangeCallback

The callback used to deliver state change notifications. This value cannot be null.

Attributes

Remarks

This method provides a callback mechanism to notify about process frozen/unfrozen events.

Java documentation for android.os.IBinder.addFrozenStateChangeCallback(java.util.concurrent.Executor, android.os.IBinder.FrozenStateChangeCallback).

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