共用方式為


ARSessionDelegate.DidFail(ARSession, NSError) 方法

定義

因錯誤而停止執行時 session 呼叫。

[Foundation.Export("session:didFailWithError:")]
[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 virtual void DidFail (ARKit.ARSession session, Foundation.NSError error);
abstract member DidFail : ARKit.ARSession * Foundation.NSError -> unit
override this.DidFail : ARKit.ARSession * Foundation.NSError -> unit

參數

session
ARSession

提供事件資訊的會話。

error
NSError

發生的錯誤。

屬性

適用於