Contents

runWithConfiguration:

Starts AR processing for the session with the specified configuration.

Declaration

- (void) runWithConfiguration:(ARConfiguration *) configuration;

Parameters

  • configuration:

    An object that defines motion and scene tracking behaviors for the session.

Discussion

The session tracks device motion, captures and processes scene imagery from the device camera, and coordinates with your delegate object or ARSCNView or ARSKView view only when running.

Calling this method on a session that has already started transitions immediately to the new session configuration. After you call this method, the session runs asynchronously.

To determine how existing session state transitions to the new configuration, use the run(_:options:) method instead. Calling runWithConfiguration: is equivalent to calling run(_:options:) with no options enabled.

See Also

Configuring and running a session