# Byte4

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

# Byte4

*** ** * ** ***

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

```
open class Byte4
```

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

*** ** * ** ***

| **This class was deprecated in API level 31.**
|
| Renderscript has been deprecated in API level 31. Please refer to the[migration guide](https://developer.android.com/guide/topics/renderscript/migration-guide)for the proposed alternatives.

Class for exposing the native RenderScript byte4 type back to the Android system.

## Summary

|                                                                                                                                                                                                                                                        Public constructors                                                                                                                                                                                                                                                         ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Byte4](https://developer.android.com/reference/kotlin/android/renderscript/Byte4#Byte4())`()` <br />                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [Byte4](https://developer.android.com/reference/kotlin/android/renderscript/Byte4#Byte4(kotlin.Byte,%20kotlin.Byte,%20kotlin.Byte,%20kotlin.Byte))`(`initX:` `[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html)`, `initY:` `[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html)`, `initZ:` `[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html)`, `initW:` `[Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html)`)` <br /> |

|                                                                                    Properties                                                                                     ||
|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [w](https://developer.android.com/reference/kotlin/android/renderscript/Byte4#w:kotlin.Byte) <br /> |
| [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [x](https://developer.android.com/reference/kotlin/android/renderscript/Byte4#x:kotlin.Byte) <br /> |
| [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [y](https://developer.android.com/reference/kotlin/android/renderscript/Byte4#y:kotlin.Byte) <br /> |
| [Byte](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte/index.html) | [z](https://developer.android.com/reference/kotlin/android/renderscript/Byte4#z:kotlin.Byte) <br /> |

## Public constructors

### Byte4

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

```
Byte4()
```  

### Byte4

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

```
Byte4(
    initX: Byte, 
    initY: Byte, 
    initZ: Byte, 
    initW: Byte)
```

## Properties

### w

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

```
var w: Byte
```

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

### x

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

```
var x: Byte
```

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

### y

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

```
var y: Byte
```

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

### z

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

```
var z: Byte
```

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