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,["# Script.FieldBase\n\nAdded in [API level 11](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\nFieldBase\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/renderscript/Script.FieldBase \"View this page in Java\") \n\n```\nopen class FieldBase\n```\n\n|---|--------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.renderscript.Script.FieldBase](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 31.**\n|\n| Deprecated in Java.\n\nOnly intended for use by generated reflected code.\n\nSummary\n-------\n\n| Protected constructors ||\n|--------------------------------------|---|\n| [FieldBase](#FieldBase())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|----------------------------------------------------|\n| open [Allocation](/reference/kotlin/android/renderscript/Allocation)! | [getAllocation](#getAllocation())`()` \u003cbr /\u003e |\n| open [Element](/reference/kotlin/android/renderscript/Element)! | [getElement](#getElement())`()` \u003cbr /\u003e |\n| open [Type](/reference/kotlin/android/renderscript/Type)! | [getType](#getType())`()` \u003cbr /\u003e |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [updateAllocation](#updateAllocation())`()` \u003cbr /\u003e |\n\n| Protected methods ||\n|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [init](#init(android.renderscript.RenderScript,%20kotlin.Int))`(`rs:` `[RenderScript](/reference/kotlin/android/renderscript/RenderScript)!`, `dimx:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [init](#init(android.renderscript.RenderScript,%20kotlin.Int,%20kotlin.Int))`(`rs:` `[RenderScript](/reference/kotlin/android/renderscript/RenderScript)!`, `dimx:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `usages:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\n| Properties ||\n|------------------------------------------------------------------|--------------------------------------------------------------------|\n| [Allocation](/reference/kotlin/android/renderscript/Allocation)! | [mAllocation](#mAllocation:android.renderscript.Allocation) \u003cbr /\u003e |\n| [Element](/reference/kotlin/android/renderscript/Element)! | [mElement](#mElement:android.renderscript.Element) \u003cbr /\u003e |\n\nProtected constructors\n----------------------\n\n### FieldBase\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected FieldBase()\n```\n\nPublic methods\n--------------\n\n### getAllocation\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getAllocation(): Allocation!\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### getElement\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getElement(): Element!\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### getType\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getType(): Type!\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### updateAllocation\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun updateAllocation(): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nProtected methods\n-----------------\n\n### init\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected open fun init(\n rs: RenderScript!, \n dimx: Int\n): Unit\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### init\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected open fun init(\n rs: RenderScript!, \n dimx: Int, \n usages: Int\n): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nProperties\n----------\n\n### mAllocation\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected var mAllocation: Allocation!\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### mElement\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nprotected var mElement: Element!\n```\n\n**Deprecated:** *Deprecated in Java.*"]]