[TIMOB-3848] iOS: iPad 2 camera overlay respect orientationModes
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2011-06-03T11:41:20.000+0000 |
Affected Version/s | Release 1.6.0 M10 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Jon Alter |
Assignee | Reggie Seagraves |
Created | 2011-04-30T19:22:03.000+0000 |
Updated | 2017-03-09T23:10:07.000+0000 |
Description
Would like to be able to control the rotation of the camera overlay as you can with a window. Example below:
Titanium.UI.setBackgroundColor('#000');
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff',
orientationModes: [ Titanium.UI.PORTRAIT ]
});
var camera_button = Titanium.UI.createButton ({
title:'Camera',
height:60,
bottom: 10,
width:160
});
camera_button.addEventListener ('click', function(e) {
Titanium.Media.showCamera ({
orientationModes: [ Titanium.UI.PORTRAIT ],
saveToPhotoGallery: true,
allowEditing: true,
success: function(event){
var a = Titanium.UI.createAlertDialog({
title: 'You did it!'
});
a.show();
},
error: function(error){
var a = Titanium.UI.createAlertDialog({
title: 'Uh Oh...'
});
if (error.code == Titanium.Media.NO_CAMERA || error.code == Titanium.Media.NO_VIDEO) {
a.setMessage('Sorry, this device does not have a camera. You knew that, right?');
}
else {
a.setMessage('Unexpected error: ' + error.code);
}
a.show();
}
});
});
win1.add(camera_button);
win1.open();
Closing ticket as the issue will not fix.