Contents

predictAnchor(for:at:)

Predict an accessory anchor to a target timestamp.

Declaration

final func predictAnchor(for anchor: AccessoryAnchor, at timestamp: TimeInterval) -> AccessoryAnchor?

Parameters

  • anchor:

    A tracked anchor from latestAnchors to generate prediction for.

  • timestamp:

    Target time for prediction. For rendering use cases with CompositorServices, use drawable.frameTiming.trackableAnchorPredictionTime.

Return Value

The predicted anchor, or nil if prediction failed.

Discussion