<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/WorldTrackingProvider/queryDeviceAnchor(atTimestamp:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit21WorldTrackingProviderC17queryDeviceAnchor11atTimestampAA0fG0VSgSd_tF"
  },
  "title" : "queryDeviceAnchor(atTimestamp:)"
}
-->

# queryDeviceAnchor(atTimestamp:)

The predicted pose of the current device at a given time.

```
final func queryDeviceAnchor(atTimestamp timestamp: TimeInterval) -> DeviceAnchor?
```

## Parameters

`timestamp`

A time — now or in the future — to predict the device pose.

## Return Value

The predicted position and orientation of the device at the time you specify.

## Discussion

Pass the `timestamp` parameter as absolute time in seconds. For example, to get the device’s current pose, pass <doc://com.apple.documentation/documentation/QuartzCore/CACurrentMediaTime()> as the timestamp.

> Important:
> Predicting future device pose is a computationally expensive operation. You typically only use this method when implementing your own rendering with the <doc://com.apple.documentation/documentation/CompositorServices> framework.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)