---
title: "queryDeviceAnchor(atTimestamp:)"
framework: arkit
role: symbol
role_heading: Instance Method
path: "arkit/worldtrackingprovider/querydeviceanchor(attimestamp:)"
---

# queryDeviceAnchor(atTimestamp:)

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

## Declaration

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

## Parameters

- `timestamp`: A time — now or in the future — to predict the device pose.

## Return Value

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

## Discussion

Discussion Pass the timestamp parameter as absolute time in seconds. For example, to get the device’s current pose, pass 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 Compositor Services framework.
