Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
android.app.sdksandbox
Giao diện
Lớp
Ngoại lệ
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# android.app.sdksandbox\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nandroid.app.sdksandbox\n======================\n\nInterfaces\n----------\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------|\n| [SdkSandboxManager.SdkSandboxProcessDeathCallback](/design-for-safety/privacy-sandbox/reference/sdksandbox/SdkSandboxManager.SdkSandboxProcessDeathCallback) | A callback for tracking events SDK sandbox death. |\n\nClasses\n-------\n\n|--------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AppOwnedSdkSandboxInterface](/design-for-safety/privacy-sandbox/reference/sdksandbox/AppOwnedSdkSandboxInterface) | Represents a channel for an SDK in the sandbox process to interact with the app. |\n| [SandboxedSdk](/design-for-safety/privacy-sandbox/reference/sdksandbox/SandboxedSdk) | Represents an SDK loaded in the sandbox process. |\n| [SandboxedSdkProvider](/design-for-safety/privacy-sandbox/reference/sdksandbox/SandboxedSdkProvider) | Encapsulates API which SDK sandbox can use to interact with SDKs loaded into it. |\n| [SdkSandboxManager](/design-for-safety/privacy-sandbox/reference/sdksandbox/SdkSandboxManager) | Provides APIs to load [SDKs](/reference/android/content/pm/SharedLibraryInfo#TYPE_SDK_PACKAGE) into the SDK sandbox process, and then interact with them. |\n\nExceptions\n----------\n\n|--------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LoadSdkException](/design-for-safety/privacy-sandbox/reference/sdksandbox/LoadSdkException) | Exception thrown by [SdkSandboxManager#loadSdk](/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)) |\n| [RequestSurfacePackageException](/design-for-safety/privacy-sandbox/reference/sdksandbox/RequestSurfacePackageException) | Exception thrown by [SdkSandboxManager#requestSurfacePackage](/design-for-safety/privacy-sandbox/reference/sdksandbox/SdkSandboxManager#requestSurfacePackage(java.lang.String,%20android.os.Bundle,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver\u003candroid.os.Bundle,android.app.sdksandbox.RequestSurfacePackageException\u003e)) |\n\n-\n\n Interfaces\n ----------\n\n - [SdkSandboxManager.SdkSandboxProcessDeathCallback](/design-for-safety/privacy-sandbox/reference/sdksandbox/SdkSandboxManager.SdkSandboxProcessDeathCallback)\n-\n\n Classes\n -------\n\n - [AppOwnedSdkSandboxInterface](/design-for-safety/privacy-sandbox/reference/sdksandbox/AppOwnedSdkSandboxInterface)\n - [SandboxedSdk](/design-for-safety/privacy-sandbox/reference/sdksandbox/SandboxedSdk)\n - [SandboxedSdkProvider](/design-for-safety/privacy-sandbox/reference/sdksandbox/SandboxedSdkProvider)\n - [SdkSandboxManager](/design-for-safety/privacy-sandbox/reference/sdksandbox/SdkSandboxManager)\n-\n\n Exceptions\n ----------\n\n - [LoadSdkException](/design-for-safety/privacy-sandbox/reference/sdksandbox/LoadSdkException)\n - [RequestSurfacePackageException](/design-for-safety/privacy-sandbox/reference/sdksandbox/RequestSurfacePackageException)"]]