# QrCode.State

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

*** ** * ** ***


```
public final class QrCode.State implements Trackable.State
```

<br />

*** ** * ** ***

The representation of the current state of a `https://developer.android.com/reference/androidx/xr/arcore/QrCode`. The `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#centerPose()` is the `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` of the center of the detected QR code's bounding box in the world coordinate space. A `https://developer.android.com/reference/androidx/xr/arcore/QrCode` is represented as a finite 2D bounding box around a `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#centerPose()`.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/Pose` | `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#getCenterPose()()` the pose of the center of the QR code. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#getData()()` the content of the detected QR code |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize2d` | `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#getExtents()()` the dimensions of the bounding box of the detected QR code |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/QrCode` | `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#getOwner()()` self-reference to the object that owns this state |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/TrackingState` | `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#getTrackingState()()` whether this QR code is being tracked or not |
| `int` | `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#toString()()` Returns a string representation of `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State` for debugging. |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getCenterPose

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

```
public final @NonNull Pose getCenterPose()
```

the pose of the center of the QR code. The +Y axis relative to the `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State#centerPose()` is equivalent to the normal of the `https://developer.android.com/reference/androidx/xr/arcore/QrCode`

### getData

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

```
public final @NonNull String getData()
```

the content of the detected QR code

### getExtents

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

```
public final @NonNull FloatSize2d getExtents()
```

the dimensions of the bounding box of the detected QR code

### getOwner

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

```
public final @NonNull QrCode getOwner()
```

self-reference to the object that owns this state

### getTrackingState

```
public @NonNull TrackingState getTrackingState()
```

whether this QR code is being tracked or not

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```

Returns a string representation of `https://developer.android.com/reference/androidx/xr/arcore/QrCode.State` for debugging.

Note: Not intended for production use.