Share via


IARSessionDelegate 인터페이스

정의

프로토콜 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
파생
특성
구현

설명

이 인터페이스에는 에 정의된 ARSessionDelegate프로토콜의 필수 메서드(있는 경우)가 포함되어 있습니다.

개발자가 이 인터페이스를 구현하는 클래스를 만드는 경우 구현 메서드는 프로토콜에 정의된 ARSessionDelegate 메서드의 일치하는 서명과 함께 Objective-C로 자동으로 내보내됩니다.

선택적 메서드(있는 경우)는 클래스에서 인터페이스에 ARSessionDelegate_Extensions 대한 확장 메서드로 제공되므로 개발자가 프로토콜에서 선택적 메서드를 호출할 수 있습니다.

속성

Handle

관리되지 않는 개체 표현에 대한 핸들(포인터)입니다.

(다음에서 상속됨 INativeObject)

확장 메서드

DidAddAnchors(IARSessionDelegate, ARSession, ARAnchor[])

anchors 에 가 추가session되면 호출됩니다.

DidRemoveAnchors(IARSessionDelegate, ARSession, ARAnchor[])

에서 제거된 경우 anchors 호출됩니다 session.

DidUpdateAnchors(IARSessionDelegate, ARSession, ARAnchor[])

anchors 추적으로 인해 업데이트되었음을 나타냅니다.

DidUpdateFrame(IARSessionDelegate, ARSession, ARFrame)

frame 추적으로 인해 업데이트되었음을 나타냅니다.

CameraDidChangeTrackingState(IARSessionObserver, ARSession, ARCamera)

변경 시 호출되며 TrackingState 추적 품질이 변경되었음을 나타냅니다.

DidFail(IARSessionObserver, ARSession, NSError)

오류로 인해 실행이 session 중지되면 호출됩니다.

DidOutputAudioSampleBuffer(IARSessionObserver, ARSession, CMSampleBuffer)

개발자는 오디오 버퍼가 재생된 직후 호출되는 이 메서드를 구현할 수 있습니다.

InterruptionEnded(IARSessionObserver, ARSession)

개발자는 이 메서드를 재정의하여 중단 후 프레임 처리 및 디바이스 추적을 시작할 수 있습니다.

ShouldAttemptRelocalization(IARSessionObserver, ARSession)

중단 후 세션의 방향을 다시 지정해야 하는지 여부를 알려주는 부울 값을 반환합니다.

WasInterrupted(IARSessionObserver, ARSession)

개발자는 이 메서드를 재정의하여 중단이 발생할 때 프레임 처리 및 디바이스 추적을 중지할 수 있습니다.

적용 대상