RenderScript.Destroy Method

Definition

Destroys this RenderScript context.

[Android.Runtime.Register("destroy", "()V", "GetDestroyHandler")]
public virtual void Destroy ();
[<Android.Runtime.Register("destroy", "()V", "GetDestroyHandler")>]
abstract member Destroy : unit -> unit
override this.Destroy : unit -> unit
Attributes

Remarks

Destroys this RenderScript context. Once this function is called, using this context or any objects belonging to this context is illegal.

API 23+, this function is a NOP if the context was created with create(). Please use releaseAllContexts() to clean up contexts created with the create function.

Java documentation for android.renderscript.RenderScript.destroy().

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