Edit

Share via


IARSessionObserver Interface

Definition

Interface defining methods that respond to events in an ARSession.

[Foundation.Protocol(Name="ARSessionObserver", WrapperType=typeof(ARKit.ARSessionObserverWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IARSessionObserver : IDisposable, ObjCRuntime.INativeObject
type IARSessionObserver = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Extension Methods

CameraDidChangeTrackingState(IARSessionObserver, ARSession, ARCamera)

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

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.

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