# AugmentedObject.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/AugmentedObject.kt+class:androidx.xr.arcore.AugmentedObject.State) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-arcore#1.0.0)

*** ** * ** ***


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

<br />

*** ** * ** ***

The representation of the current state of an AugmentedObject.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/xr/arcore/AugmentedObject.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/AugmentedObjectCategory` | `https://developer.android.com/reference/androidx/xr/arcore/AugmentedObject.State#getCategory()()` the `https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory` of the augmented object |
| `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/AugmentedObject.State#getCenterPose()()` the `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` determined to represent the center of this object |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/runtime/math/FloatSize3d` | `https://developer.android.com/reference/androidx/xr/arcore/AugmentedObject.State#getExtents()()` the dimensions of the object, axis aligned relative to the center pose, representing the full length of the specific axis |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/arcore/AugmentedObject` | `https://developer.android.com/reference/androidx/xr/arcore/AugmentedObject.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/AugmentedObject.State#getTrackingState()()` the `https://developer.android.com/reference/androidx/xr/arcore/TrackingState` of the object |
| `int` | `https://developer.android.com/reference/androidx/xr/arcore/AugmentedObject.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/AugmentedObject.State#toString()()` Returns a string representation of `https://developer.android.com/reference/androidx/xr/arcore/AugmentedObject.State` for debugging. |

## Public methods

### equals

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

### getCategory

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

```
public final @NonNull AugmentedObjectCategory getCategory()
```

the `https://developer.android.com/reference/androidx/xr/runtime/AugmentedObjectCategory` of the augmented object

### getCenterPose

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

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

the `https://developer.android.com/reference/androidx/xr/runtime/math/Pose` determined to represent the center of this object

### getExtents

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

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

the dimensions of the object, axis aligned relative to the center pose, representing the full length of the specific axis

### getOwner

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

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

self-reference to the object that owns this state

### getTrackingState

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

the `https://developer.android.com/reference/androidx/xr/arcore/TrackingState` of the object

### hashCode

```
public int hashCode()
```

### toString

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

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

Note: Not intended for production use.