Edytuj

Udostępnij za pośrednictwem


IARSessionDelegate Interface

Definition

Interface representing the required methods (if any) of the protocol ARSessionDelegate.

[Foundation.Protocol(Name="ARSessionDelegate", WrapperType=typeof(ARKit.ARSessionDelegateWrapper))]
[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 IARSessionDelegate : ARKit.IARSessionObserver, IDisposable
type IARSessionDelegate = interface
    interface INativeObject
    interface IDisposable
    interface IARSessionObserver
Derived
Attributes
Implements

Remarks

This interface contains the required methods (if any) from the protocol defined by ARSessionDelegate.

If developers create classes that implement this interface, the implementation methods will automatically be exported to Objective-C with the matching signature from the method defined in the ARSessionDelegate protocol.

Optional methods (if any) are provided by the ARSessionDelegate_Extensions class as extension methods to the interface, allowing developers to invoke any optional methods on the protocol.

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Extension Methods

DidAddAnchors(IARSessionDelegate, ARSession, ARAnchor[])

Called when anchors are added to the session.

DidRemoveAnchors(IARSessionDelegate, ARSession, ARAnchor[])

Called when anchors have been removed from the session.

DidUpdateAnchors(IARSessionDelegate, ARSession, ARAnchor[])

Indicates that anchors have been updated due to tracking.

DidUpdateFrame(IARSessionDelegate, ARSession, ARFrame)

Indicates that frame has been updated due to tracking.

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