Instance Method

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 runWithConfiguration:options: method instead. Calling runWithConfiguration: is equivalent to calling runWithConfiguration:options: with no options enabled.

See Also

Configuring and Running a Session

- runWithConfiguration:options:

Starts AR processing for the session with the specified configuration and options.

identifier

A unique identifier of the running session.

ARSessionRunOptions

Options affecting how to transition an AR session's current state when you change its configuration.

configuration

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

- pause

Pauses processing in the session.