Skip to main content

Aila_RegainCamera

Relinquish camera control to Aila.

Signature

void Aila_RegainCamera(void);

Description

Regains usage of the Apple device camera for use by the Aila SDK. This should be called after you're done using the camera for other purposes and want to return control to Aila for scanning.

Calling this function while other resources are still accessing the camera may result in unintended behavior. Ensure all other camera usage is stopped before calling this function.

This function returns immediately.

Usage

// Clean up custom camera session
[self.customCameraSession stopRunning];

// Return control to Aila
Aila_RegainCamera();

// Can now start scanning again
Aila_Start();

See Also