Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ScriptGroup.Binding\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBinding\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/renderscript/ScriptGroup.Binding \"View this page in Java\") \n\n```\nclass Binding\n```\n\n|---|-----------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.renderscript.ScriptGroup.Binding](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 31.**\n|\n| Deprecated in Java.\n\nRepresents a binding of a value to a global variable in a kernel or invocable function. Used in closure creation.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Binding](#Binding(android.renderscript.Script.FieldID,%20kotlin.Any))`(`field:` `[Script.FieldID](/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 |\n\nPublic constructors\n-------------------\n\n### Binding\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBinding(\n field: Script.FieldID!, \n value: Any!)\n```\n\nReturns a Binding object that binds value to field\n\n| Parameters ||\n|---------|---------------------------------------------------------------------------------------------------------------------|\n| `field` | [Script.FieldID](/reference/kotlin/android/renderscript/Script.FieldID)!: the Script.FieldID of the global variable |\n| `value` | [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!: the value |"]]