ARSKViewDelegate.DidFail(ARSession, NSError) 方法

定义

开发人员可以重写此方法,以对增强现实处理中的故障做出反应。

[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

发生的错误。

属性

适用于