# Script.FieldBase

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Deprecated in[API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Fields](https://developer.android.com/reference/android/renderscript/Script.FieldBase#lfields)\|[Protected Ctors](https://developer.android.com/reference/android/renderscript/Script.FieldBase#proctors)\|[Methods](https://developer.android.com/reference/android/renderscript/Script.FieldBase#pubmethods)\|[Protected Methods](https://developer.android.com/reference/android/renderscript/Script.FieldBase#promethods)\|[Inherited Methods](https://developer.android.com/reference/android/renderscript/Script.FieldBase#inhmethods)  

# Script.FieldBase

*** ** * ** ***

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

`
public
static


class
Script.FieldBase
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|---------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.renderscript.Script.FieldBase |

<br />

*** ** * ** ***

Only intended for use by generated reflected code.

## Summary

|                                                                                                     ### Fields                                                                                                      ||
|----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
| ` protected `[Allocation](https://developer.android.com/reference/android/renderscript/Allocation) | [mAllocation](https://developer.android.com/reference/android/renderscript/Script.FieldBase#mAllocation) <br /> |
| ` protected `[Element](https://developer.android.com/reference/android/renderscript/Element)       | [mElement](https://developer.android.com/reference/android/renderscript/Script.FieldBase#mElement) <br />       |

|                                            ### Protected constructors                                             ||
|----------------------------------------------------------------------------------------------------------------|---|
| ` `[FieldBase](https://developer.android.com/reference/android/renderscript/Script.FieldBase#FieldBase())`() ` |

|                                                                                                   ### Public methods                                                                                                   ||
|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
| ` `[Allocation](https://developer.android.com/reference/android/renderscript/Allocation) | ` `[getAllocation](https://developer.android.com/reference/android/renderscript/Script.FieldBase#getAllocation())`() `       |
| ` `[Element](https://developer.android.com/reference/android/renderscript/Element)       | ` `[getElement](https://developer.android.com/reference/android/renderscript/Script.FieldBase#getElement())`() `             |
| ` `[Type](https://developer.android.com/reference/android/renderscript/Type)             | ` `[getType](https://developer.android.com/reference/android/renderscript/Script.FieldBase#getType())`() `                   |
| ` void`                                                                                  | ` `[updateAllocation](https://developer.android.com/reference/android/renderscript/Script.FieldBase#updateAllocation())`() ` |

|                                                                                                                              ### Protected methods                                                                                                                               ||
|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[init](https://developer.android.com/reference/android/renderscript/Script.FieldBase#init(android.renderscript.RenderScript,%20int,%20int))`(`[RenderScript](https://developer.android.com/reference/android/renderscript/RenderScript)` rs, int dimx, int usages) ` |
| ` void` | ` `[init](https://developer.android.com/reference/android/renderscript/Script.FieldBase#init(android.renderscript.RenderScript,%20int))`(`[RenderScript](https://developer.android.com/reference/android/renderscript/RenderScript)` rs, int dimx) `                    |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Fields

### mAllocation

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

```
protected Allocation mAllocation
```

<br />

<br />

### mElement

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

```
protected Element mElement
```

<br />

<br />

## Protected constructors

### FieldBase

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

```
protected FieldBase ()
```

<br />

<br />

## Public methods

### getAllocation

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

```
public Allocation getAllocation ()
```

<br />

<br />

|                                            Returns                                            ||
|---------------------------------------------------------------------------------------|--------|
| [Allocation](https://developer.android.com/reference/android/renderscript/Allocation) | <br /> |

### getElement

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

```
public Element getElement ()
```

<br />

<br />

|                                         Returns                                         ||
|---------------------------------------------------------------------------------|--------|
| [Element](https://developer.android.com/reference/android/renderscript/Element) | <br /> |

### getType

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

```
public Type getType ()
```

<br />

<br />

|                                      Returns                                      ||
|---------------------------------------------------------------------------|--------|
| [Type](https://developer.android.com/reference/android/renderscript/Type) | <br /> |

### updateAllocation

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

```
public void updateAllocation ()
```

<br />

<br />

## Protected methods

### init

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

```
protected void init (RenderScript rs, 
                int dimx, 
                int usages)
```

<br />

<br />

|           Parameters            ||
|----------|-----------------------|
| `rs`     | `RenderScript` <br /> |
| `dimx`   | `int` <br />          |
| `usages` | `int` <br />          |

### init

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

```
protected void init (RenderScript rs, 
                int dimx)
```

<br />

<br />

|          Parameters           ||
|--------|-----------------------|
| `rs`   | `RenderScript` <br /> |
| `dimx` | `int` <br />          |