RenderScript.ReleaseAllContexts Method

Definition

Releases all the process contexts.

[Android.Runtime.Register("releaseAllContexts", "()V", "", ApiSince=23)]
public static void ReleaseAllContexts ();
[<Android.Runtime.Register("releaseAllContexts", "()V", "", ApiSince=23)>]
static member ReleaseAllContexts : unit -> unit
Attributes

Remarks

Releases all the process contexts. This is the same as calling .destroy() on each unique context retreived with create(...). If no contexts have been created this function does nothing.

Typically you call this when your application is losing focus and will not be using a context for some time.

This has no effect on a context created with createMultiContext()

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

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