Method OnSessionDidFailWithError
OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)
Invoked when the session fails. This base class implementation does nothing.
Declaration
protected virtual void OnSessionDidFailWithError(ARKitSessionSubsystem sessionSubsystem, NSError error)
Parameters
Type | Name | Description |
---|---|---|
ARKitSessionSubsystem | sessionSubsystem | The ARKitSessionSubsystem which provides an interface to the ARKit session. |
NSError | error | The NSError object describing the failure. This object is only valid during this callback. See also ARKitErrorCode. |
Remarks
Use this to respond to session failures. For example, the DefaultARKitSessionDelegate implementation tries to restart the session by calling Reset.
See session:didFailWithError: for more information.