Share via


ARSessionObserver_Extensions Class

Definition

Extension methods to the IARSessionObserver interface to support all the methods from the ARSessionObserver protocol.

public static class ARSessionObserver_Extensions
type ARSessionObserver_Extensions = class
Inheritance
ARSessionObserver_Extensions

Remarks

The extension methods for IARSessionObserver interface allow developers to treat instances of the interface as having all the optional methods of the original ARSessionObserver protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

Name Description
CameraDidChangeTrackingState(IARSessionObserver, ARSession, ARCamera)

Called when the TrackingState changes, indicating a change in tracking quality.

DidChangeGeoTrackingStatus(IARSessionObserver, ARSession, ARGeoTrackingStatus)
DidFail(IARSessionObserver, ARSession, NSError)

Called when the session stops running due to an error.

DidOutputAudioSampleBuffer(IARSessionObserver, ARSession, CMSampleBuffer)

Developers may implement this method that is called shortly after an audio buffer has been played.

DidOutputCollaborationData(IARSessionObserver, ARSession, ARCollaborationData)
InterruptionEnded(IARSessionObserver, ARSession)

Developers may override this method to begin frame processing and device tracking after an interruption.

ShouldAttemptRelocalization(IARSessionObserver, ARSession)

Returns a Boolean value that tells whether the session should attempt to reorient after an interruption.

WasInterrupted(IARSessionObserver, ARSession)

Developers may override this method to stop frame processing and device tracking when an interruption occurs.

Applies to