다음을 통해 공유


SandboxedSdkProvider.BeforeUnloadSdk Method

Definition

Does the work needed for the SDK to free its resources before being unloaded.

[Android.Runtime.Register("beforeUnloadSdk", "()V", "GetBeforeUnloadSdkHandler", ApiSince=34)]
public virtual void BeforeUnloadSdk ();
[<Android.Runtime.Register("beforeUnloadSdk", "()V", "GetBeforeUnloadSdkHandler", ApiSince=34)>]
abstract member BeforeUnloadSdk : unit -> unit
override this.BeforeUnloadSdk : unit -> unit
Attributes

Remarks

Does the work needed for the SDK to free its resources before being unloaded.

This function is called by the SDK sandbox manager before it unloads the SDK. The SDK should fail any invocations on the Binder previously returned to the client through SandboxedSdk#getInterface.

The SDK should not do any long-running tasks here, like I/O and network calls.

Java documentation for android.app.sdksandbox.SandboxedSdkProvider.beforeUnloadSdk().

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