Instance Method

coachingOverlayViewDidRequestSessionReset:

Tells you when the user taps the coaching overlay view's Start Over button while the session is relocalizing.

Declaration

- (void)coachingOverlayViewDidRequestSessionReset:(ARCoachingOverlayView *)coachingOverlayView;

Discussion

Implement this function to do the actions your app requires to restart the AR experience. For example, you might hide custom relocalization UI, deallocate resources, or restore virtual content to a starting location.

If you don't implement this function, the coaching overlay resets the session for you––equivalent to calling runWithConfiguration:options: with the ARSessionRunOptionResetTracking option––when the user taps Start Over.