Aracılığıyla paylaş


SurfaceControl.Release Method

Definition

Release the local reference to the server-side surface.

[Android.Runtime.Register("release", "()V", "", ApiSince=29)]
public void Release ();
[<Android.Runtime.Register("release", "()V", "", ApiSince=29)>]
member this.Release : unit -> unit
Attributes

Remarks

Release the local reference to the server-side surface. The surface may continue to exist on-screen as long as its parent continues to exist. To explicitly remove a surface from the screen use Transaction#reparent with a null-parent. After release, #isValid will return false and other methods will throw an exception.

Always call release() when you're done with a SurfaceControl.

Java documentation for android.view.SurfaceControl.release().

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