SdkSandboxManager.AddSdkSandboxProcessDeathCallback 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.
Adds a callback which gets registered for SDK sandbox lifecycle events, such as SDK sandbox death.
[Android.Runtime.Register("addSdkSandboxProcessDeathCallback", "(Ljava/util/concurrent/Executor;Landroid/app/sdksandbox/SdkSandboxManager$SdkSandboxProcessDeathCallback;)V", "", ApiSince=34)]
public void AddSdkSandboxProcessDeathCallback(Java.Util.Concurrent.IExecutor callbackExecutor, Android.App.SdkSandbox.SdkSandboxManager.ISdkSandboxProcessDeathCallback callback);
[<Android.Runtime.Register("addSdkSandboxProcessDeathCallback", "(Ljava/util/concurrent/Executor;Landroid/app/sdksandbox/SdkSandboxManager$SdkSandboxProcessDeathCallback;)V", "", ApiSince=34)>]
member this.AddSdkSandboxProcessDeathCallback : Java.Util.Concurrent.IExecutor * Android.App.SdkSandbox.SdkSandboxManager.ISdkSandboxProcessDeathCallback -> unit
Parameters
- callbackExecutor
- IExecutor
the Executor on which to invoke 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 MainExecutor. Otherwise, provide an Executor that dispatches to an appropriate thread.
the SdkSandboxProcessDeathCallback which will receive SDK sandbox lifecycle events. This value cannot be null.
- Attributes
Remarks
When the SDK sandbox is enabled, adds a callback which gets registered for SDK sandbox lifecycle events, such as SDK sandbox death. If the sandbox has not yet been created when this is called, the request will be stored until a sandbox is created, at which point it is activated for that sandbox. Multiple callbacks can be added to detect death and will not be removed when the sandbox dies.
Android reference for android.app.sdksandbox.SdkSandboxManager.addSdkSandboxProcessDeathCallback.
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.