Skip to main content

enableCamera()

Regain usage of the Apple device camera for use by the Aila SDK.

Calling this function while other resources are still accessing the camera may result in unintended behavior. This function returns immediately.

AilaCordovaPlugin.enableCamera()

Returns

Promise that resolves when camera control is restored to the SDK.

Example

AilaCordovaPlugin.disableCamera()
.then(() => {
return useCustomCamera();
})
.then(() => {
return AilaCordovaPlugin.enableCamera();
})
.then(() => {
return AilaCordovaPlugin.scanStart();
});