# RenderScript.ContextType

Added in [API level 18](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)

# ContextType

*** ** * ** ***

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

```
class ContextType
```

|---|---|------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                    |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[android.renderscript.RenderScript.ContextType](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#)\> ||
|   | ↳ | [android.renderscript.RenderScript.ContextType](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#) |

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [RenderScript.ContextType.DEBUG](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#ENUM_VALUE:DEBUG), [RenderScript.ContextType.NORMAL](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#ENUM_VALUE:NORMAL), [RenderScript.ContextType.PROFILE](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#ENUM_VALUE:PROFILE) |-----------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------| | [RenderScript.ContextType.DEBUG](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#ENUM_VALUE:DEBUG)     | DEBUG context, perform extra runtime checks to validate the kernels and APIs are being used as intended. | | [RenderScript.ContextType.NORMAL](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#ENUM_VALUE:NORMAL)   | NORMAL context, this is the default and what shipping apps should use.                                   | | [RenderScript.ContextType.PROFILE](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#ENUM_VALUE:PROFILE) | PROFILE context, Intended to be used once the first time an application is run on a new device.          | |

*** ** * ** ***

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

ContextType specifies the specific type of context to be created.

## Summary

|                                                                                                            Enum values                                                                                                             ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [DEBUG](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#ENUM_VALUE:DEBUG) DEBUG context, perform extra runtime checks to validate the kernels and APIs are being used as intended. |
| [NORMAL](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#ENUM_VALUE:NORMAL) NORMAL context, this is the default and what shipping apps should use.                                 |
| [PROFILE](https://developer.android.com/reference/kotlin/android/renderscript/RenderScript.ContextType#ENUM_VALUE:PROFILE) PROFILE context, Intended to be used once the first time an application is run on a new device.      |

## Enum values

### DEBUG

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

```
enum val DEBUG : RenderScript.ContextType
```

**Deprecated:** *Deprecated in Java.*

DEBUG context, perform extra runtime checks to validate the kernels and APIs are being used as intended. Get and SetElementAt will be bounds checked in this mode.  

### NORMAL

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

```
enum val NORMAL : RenderScript.ContextType
```

**Deprecated:** *Deprecated in Java.*

NORMAL context, this is the default and what shipping apps should use.  

### PROFILE

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

```
enum val PROFILE : RenderScript.ContextType
```

**Deprecated:** *Deprecated in Java.*

PROFILE context, Intended to be used once the first time an application is run on a new device. This mode allows the runtime to do additional testing and performance tuning.