Edytuj

Udostępnij za pośrednictwem


ARSessionDelegate.DidUpdateFrame(ARSession, ARFrame) Method

Definition

Indicates that frame has been updated due to tracking.

[Foundation.Export("session:didUpdateFrame:")]
public virtual void DidUpdateFrame (ARKit.ARSession session, ARKit.ARFrame frame);
abstract member DidUpdateFrame : ARKit.ARSession * ARKit.ARFrame -> unit
override this.DidUpdateFrame : ARKit.ARSession * ARKit.ARFrame -> unit

Parameters

session
ARSession

The session that is supplying the information for the event.

frame
ARFrame

The frame that was updated.

Attributes

Remarks

Developers who override this method must be sure to call M:System.IDisposable.Dispose* on the frame when they have finished processing. Internally, ARKit only generates a new ARFrame object when there are no more references to an existing frame. If M:System.IDisposable.Dispose* is not called, ARKit will not produce until the GC collects the frame. This typically appears as a frozen, non-responsive, or "severely stuttering" video feed.

Applies to