I have just recently completed my first B4A app and am now looking at porting it to B4I.
My B4A app uses the ABZxing library which launches the ZXing barcode scanner.
One of the settings in the ZXing barcode scanner is "Front Light/On/Automatic/Off".
The apps are likely to be used in indifferent ambient light conditions - hence use of the Front Light/Automatic option is highly recommended.
In B4I I can see I can use the iBarcode library for barcode scanning and iPhone.Phone.SetFlashLight to turn the front light on and off.
To fully imitate the ZXing Front Light/Automatic feature I need the ability to detect the ambient light condition in B4I - the equivalent of B4A Phone.PhoneSensors(TYPE_LIGHT).
This capability doesn't seem to exist - your suggestions are eagerly sought.
BTW a bit of googling came up with this site:
http://iphonedevwiki.net/index.php/AppleISL29003
which seems to be talking about the sort of capability desired - but way over my head.
Thanks in anticipation...
My B4A app uses the ABZxing library which launches the ZXing barcode scanner.
One of the settings in the ZXing barcode scanner is "Front Light/On/Automatic/Off".
The apps are likely to be used in indifferent ambient light conditions - hence use of the Front Light/Automatic option is highly recommended.
In B4I I can see I can use the iBarcode library for barcode scanning and iPhone.Phone.SetFlashLight to turn the front light on and off.
To fully imitate the ZXing Front Light/Automatic feature I need the ability to detect the ambient light condition in B4I - the equivalent of B4A Phone.PhoneSensors(TYPE_LIGHT).
This capability doesn't seem to exist - your suggestions are eagerly sought.
BTW a bit of googling came up with this site:
http://iphonedevwiki.net/index.php/AppleISL29003
which seems to be talking about the sort of capability desired - but way over my head.
Thanks in anticipation...