Android Developers Develop Reference Added in API level 11Deprecated in API level 31 Byte2 Kotlin |Java open class Byte2 kotlin.Any ↳ android.renderscript.Byte2 Class for exposing the native RenderScript byte2 type back to the Android system. Summary Public constructors Byte2() Byte2(initX: Byte, initY: Byte) Properties Byte x Byte y Public constructors Byte2 Added in API level 11 Byte2() Byte2 Added in API level 14 Byte2( initX: Byte, initY: Byte) Properties x Added in API level 11 var x: Byte Deprecated: Deprecated in Java. y Added in API level 11 var y: Byte Deprecated: Deprecated in Java.