# Long2

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)

# Long2

*** ** * ** ***

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

```
open class Long2
```

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

*** ** * ** ***

| **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 long type. Provides two long fields packed.

## Summary

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

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

## Public constructors

### Long2

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

```
Long2()
```  

### Long2

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

```
Long2(
    x: Long, 
    y: Long)
```

## Properties

### x

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

```
var x: Long
```

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

### y

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

```
var y: Long
```

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