# TestQrCode

Artifact: [androidx.xr.arcore:arcore-testing](https://developer.android.com/jetpack/androidx/releases/xr-arcore) [View Source](https://cs.android.com/search?q=file:androidx/xr/arcore/testing/TestQrCode.kt+class:androidx.xr.arcore.testing.TestQrCode) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

*** ** * ** ***


```
class TestQrCode : TestTrackable
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.xr.arcore.testing.TestTrackable](https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestTrackable) ||
|   | ↳ | [androidx.xr.arcore.testing.TestQrCode](https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestQrCode) |

*** ** * ** ***

QR code in the test environment.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestQrCode#TestQrCode(kotlin.String)(data: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestQrCode#centerPose()` `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` at the center of the augmented image |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestQrCode#data()` the data of the QR code |
| `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize2d` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestQrCode#extents()` the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize2d` extents used to determine the size of the image |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/arcore/testing/TestQrCode#isVisible()` indicates whether the trackable object is currently in view of the runtime |

## Public constructors

### TestQrCode

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
TestQrCode(data: String)
```

## Public properties

### centerPose

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var centerPose: Pose
```

`https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/Pose` at the center of the augmented image

### data

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var data: String
```

the data of the QR code

### extents

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

```
var extents: FloatSize2d
```

the `https://developer.android.com/reference/kotlin/androidx/xr/runtime/math/FloatSize2d` extents used to determine the size of the image

### isVisible

```
open var isVisible: Boolean
```

indicates whether the trackable object is currently in view of the runtime