Skip to content

Most visited

Recently visited

navigation

ScriptGroup.Closure

public static final class ScriptGroup.Closure
extends BaseObj

java.lang.Object
   ↳ android.support.v8.renderscript.BaseObj
     ↳ android.support.v8.renderscript.ScriptGroup.Closure


An opaque class for closures

A closure represents a function call to a kernel or invocable function, combined with arguments and values for global variables. A closure is created using the addKernel(Script.KernelID, Type, Object...) or addInvoke(Script.InvokeID, Object...) method.

Summary

Public methods

ScriptGroup.Future getGlobal(Script.FieldID field)

Returns the future for a global variable

ScriptGroup.Future getReturn()

Returns the future for the return value

Inherited methods

From class android.support.v8.renderscript.BaseObj
From class java.lang.Object

Public methods

getGlobal

added in version 23.0.0
ScriptGroup.Future getGlobal (Script.FieldID field)

Returns the future for a global variable

Parameters
field Script.FieldID: the field ID for the global variable

Returns
ScriptGroup.Future a future

getReturn

added in version 23.0.0
ScriptGroup.Future getReturn ()

Returns the future for the return value

Returns
ScriptGroup.Future a future

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)