Share via


ARSCNViewDelegate.ShouldAttemptRelocalization(ARSession) 方法

定义

返回一个布尔值,该值指示会话是否应在中断后尝试重新定向。

[Foundation.Export("sessionShouldAttemptRelocalization:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 3, ObjCRuntime.PlatformArchitecture.All, null)]
[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 bool ShouldAttemptRelocalization (ARKit.ARSession session);
abstract member ShouldAttemptRelocalization : ARKit.ARSession -> bool
override this.ShouldAttemptRelocalization : ARKit.ARSession -> bool

参数

session
ARSession

有问题的会话。

返回

一个布尔值,指示会话在中断后是否应尝试重新定向。

属性

适用于