透過集合功能整理內容
你可以依據偏好儲存及分類內容。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# SdkSandboxManager.SdkSandboxProcessDeathCallback\n\nAdded in [API level 34](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nAlso in [Ad Services Extensions 4](/sdkExtensions) \n\nSdkSandboxManager.SdkSandboxProcessDeathCallback\n================================================\n\n\n`\npublic\nstatic\n\n\ninterface\nSdkSandboxManager.SdkSandboxProcessDeathCallback\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------------------------------|\n| android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA callback for tracking events SDK sandbox death.\n\nThe callback can be added using [SdkSandboxManager.addSdkSandboxProcessDeathCallback(java.util.concurrent.Executor, android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback)](/design-for-safety/privacy-sandbox/reference/sdksandbox/SdkSandboxManager#addSdkSandboxProcessDeathCallback(java.util.concurrent.Executor,%20android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback)) and removed using [SdkSandboxManager.removeSdkSandboxProcessDeathCallback(android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback)](/design-for-safety/privacy-sandbox/reference/sdksandbox/SdkSandboxManager#removeSdkSandboxProcessDeathCallback(android.app.sdksandbox.SdkSandboxManager.SdkSandboxProcessDeathCallback))\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onSdkSandboxDied](/design-for-safety/privacy-sandbox/reference/sdksandbox/SdkSandboxManager.SdkSandboxProcessDeathCallback#onSdkSandboxDied())`() ` Notifies the client application that the SDK sandbox has died. |\n\nPublic methods\n--------------\n\n### onSdkSandboxDied\n\nAdded in [API level 34](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nAlso in [Ad Services Extensions 4](/sdkExtensions) \n\n```\npublic abstract void onSdkSandboxDied ()\n```\n\nNotifies the client application that the SDK sandbox has died. The sandbox could die for\nvarious reasons, for example, due to memory pressure on the system, or a crash in the\nsandbox.\n\nThe system will automatically restart the sandbox process if it died due to a crash.\nHowever, the state of the sandbox will be lost - so any SDKs that were loaded previously\nwould have to be loaded again, using [SdkSandboxManager#loadSdk(String, Bundle,\nExecutor, OutcomeReceiver)](/design-for-safety/privacy-sandbox/reference/sdksandbox/SdkSandboxManager#loadSdk(java.lang.String,%20android.os.Bundle,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver\u003candroid.app.sdksandbox.SandboxedSdk,android.app.sdksandbox.LoadSdkException\u003e)) to continue using them.\n\n\u003cbr /\u003e"]]