javascript - Titanium.Media.showCamera with overlay, pass through events -
i writing ios application utilizes camera. want image (and control element or two) overlayed on camera picture.
this works. overlay prevents default control elements flash, hdr , camera selection receiving touch events.
below code. there way make myoverlay pass through or ignore events?
var overlayimage = titanium.ui.createimageview({ width: 100, height: 100, backgroundimage: 'img/picture.png' }); var myoverlay = titanium.ui.createview(); myoverlay.add(overlayimage); titanium.media.showcamera({ success: successmethod, error: errormethod, cancel: function(e) {}, overlay: myoverlay, savetophotogallery: true, allowediting: false, mediatypes: ['public.image'] });
you can try var myoverlay = titanium.ui.createview({touchenabled: false});
, should pass events according appcelerator docs.
Comments
Post a Comment