# Int2

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)

# Int2

*** ** * ** ***

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

```
open class Int2
```

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

*** ** * ** ***

| **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.

Vector version of the basic int type. Provides two int fields packed.

## Summary

|                                                                                                                                        Public constructors                                                                                                                                        ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Int2](https://developer.android.com/reference/kotlin/android/renderscript/Int2#Int2())`()` <br />                                                                                                                                                                                             |
| [Int2](https://developer.android.com/reference/kotlin/android/renderscript/Int2#Int2(kotlin.Int,%20kotlin.Int))`(`x:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `y:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br /> |

|                                                                                  Properties                                                                                   ||
|----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [x](https://developer.android.com/reference/kotlin/android/renderscript/Int2#x:kotlin.Int) <br /> |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [y](https://developer.android.com/reference/kotlin/android/renderscript/Int2#y:kotlin.Int) <br /> |

## Public constructors

### Int2

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

```
Int2()
```  

### Int2

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

```
Int2(
    x: Int, 
    y: Int)
```

## Properties

### x

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

```
var x: Int
```

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

### y

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

```
var y: Int
```

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