I tried getting what direction the camera is facing when the app launches
But I don’t know how to read the current value only how to detect change like this
CameraInfo.captureDevicePosition.monitor().subscribe(function (e) {
Diagnostics.log("camerainfo handler triggered")
if (e.newValue == "BACK") {
frontCamOn = false;
} else {
frontCamOn = true;
}
})
How do I set frontCamOn true or false on app launch?