# ScriptGroup.Binding

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Binding

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/renderscript/ScriptGroup.Binding "View this page in Java")  

```
class Binding
```

|---|--------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                       ||
| ↳ | [android.renderscript.ScriptGroup.Binding](https://developer.android.com/reference/kotlin/android/renderscript/ScriptGroup.Binding#) |

*** ** * ** ***

| **This class was deprecated in API level 31.**
|
| Deprecated in Java.

Represents a binding of a value to a global variable in a kernel or invocable function. Used in closure creation.

## Summary

|                                                                                                                                                                                                       Public constructors                                                                                                                                                                                                       ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Binding](https://developer.android.com/reference/kotlin/android/renderscript/ScriptGroup.Binding#Binding(android.renderscript.Script.FieldID,%20kotlin.Any))`(`field:` `[Script.FieldID](https://developer.android.com/reference/kotlin/android/renderscript/Script.FieldID)!`, `value:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!`)` Returns a Binding object that binds value to field |

## Public constructors

### Binding

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
Binding(
    field: Script.FieldID!, 
    value: Any!)
```

Returns a Binding object that binds value to field

|                                                                        Parameters                                                                        ||
|---------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `field` | [Script.FieldID](https://developer.android.com/reference/kotlin/android/renderscript/Script.FieldID)!:the Script.FieldID of the global variable |
| `value` | [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!:the value                                                           |