Aila_RegainCamera
Relinquish camera control to Aila.
Signature
- Objective-C
- Swift
void Aila_RegainCamera(void);
func Aila_RegainCamera()
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
- Objective-C
- Swift
// Clean up custom camera session
[self.customCameraSession stopRunning];
// Return control to Aila
Aila_RegainCamera();
// Can now start scanning again
Aila_Start();
// Clean up custom camera session
customCameraSession.stopRunning()
// Return control to Aila
Aila_RegainCamera()
// Can now start scanning again
Aila_Start()
See Also
- Aila_ReleaseCamera - Take full control of device camera
- Aila_GetAVCaptureSession - Get AVCaptureSession reference