Stay organized with collections
Save and categorize content based on your preferences.
SdkSandboxProcessDeathCallback
interface SdkSandboxProcessDeathCallback
A callback for tracking events SDK sandbox death.
The callback can be added using android.app.sdksandbox.SdkSandboxManager#addSdkSandboxProcessDeathCallback(java.util.concurrent.Executor,android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback)
and removed using android.app.sdksandbox.SdkSandboxManager#removeSdkSandboxProcessDeathCallback(android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback)
Summary
Public methods |
abstract Unit |
Notifies the client application that the SDK sandbox has died.
|
Public methods
onSdkSandboxDied
abstract fun onSdkSandboxDied(): Unit
Notifies the client application that the SDK sandbox has died. The sandbox could die for various reasons, for example, due to memory pressure on the system, or a crash in the sandbox. The system will automatically restart the sandbox process if it died due to a crash. However, the state of the sandbox will be lost - so any SDKs that were loaded previously would have to be loaded again, using SdkSandboxManager.loadSdk(String, Bundle,
to continue using them.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SdkSandboxManager.SdkSandboxProcessDeathCallback\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions)\n\nSdkSandboxProcessDeathCallback\n==============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/app/sdksandbox/SdkSandboxManager.SdkSandboxProcessDeathCallback \"View this page in Java\") \n\n```\ninterface SdkSandboxProcessDeathCallback\n```\n\n|------------------------------------------------------------------------------|\n| [android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback](#) |\n\nA callback for tracking events SDK sandbox death.\n\nThe callback can be added using [android.app.sdksandbox.SdkSandboxManager#addSdkSandboxProcessDeathCallback(java.util.concurrent.Executor,android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback)](/reference/kotlin/android/app/sdksandbox/SdkSandboxManager#addSdkSandboxProcessDeathCallback(java.util.concurrent.Executor,%20android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback)) and removed using [android.app.sdksandbox.SdkSandboxManager#removeSdkSandboxProcessDeathCallback(android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback)](/reference/kotlin/android/app/sdksandbox/SdkSandboxManager#removeSdkSandboxProcessDeathCallback(android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback))\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onSdkSandboxDied](#onSdkSandboxDied())`()` Notifies the client application that the SDK sandbox has died. |\n\nPublic methods\n--------------\n\n### onSdkSandboxDied\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nabstract fun onSdkSandboxDied(): Unit\n```\n\nNotifies the client application that the SDK sandbox has died. The sandbox could die for various reasons, for example, due to memory pressure on the system, or a crash in the sandbox. The system will automatically restart the sandbox process if it died due to a crash. However, the state of the sandbox will be lost - so any SDKs that were loaded previously would have to be loaded again, using [SdkSandboxManager.loadSdk(String, Bundle,](/reference/kotlin/android/app/sdksandbox/SdkSandboxManager#loadSdk(kotlin.String,%20android.os.Bundle,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver)) to continue using them."]]