[TIMOB-20001] iOS: Rename Ti.Media.CAMERA_AUTHORIZATION_NOT_DETERMINED to UNKNOWN
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Trivial |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2015-11-30T04:46:08.000+0000 |
| Affected Version/s | Release 5.1.0 |
| Fix Version/s | Release 5.2.0 |
| Components | iOS |
| Labels | n/a |
| Reporter | Fokke Zandbergen |
| Assignee | Chee Kiat Ng |
| Created | 2015-11-17T10:09:00.000+0000 |
| Updated | 2016-01-14T00:14:30.000+0000 |
Description
Ti.Calendar, Ti.Contacts and Ti.Geolocation each have AUTHORIZATION_UNKNOWN but Ti.Media has [CAMERA_AUTHORIZATION_NOT_DETERMINED](https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.Media-property-CAMERA_AUTHORIZATION_NOT_DETERMINED).
The prefix makes sense, since Ti.Media is about more then the camera, but since the 3 other CAMERA_AUTHORIZATION_* are identical to those of the other 3 APIs, why not use CAMERA_AUTHORIZATION_UNKNOWN?
PR here: https://github.com/appcelerator/titanium_mobile/pull/7506
Steps to test
Use this sample code:Expected Result
PR tested working fine!
Verified as fixed, tested on: iPhone 6s Plus Device (9.2) Mac OSX El Capitan 10.11 (15A284) Studio: 4.4.0.201511241829 Ti SDK: 5.1.2.v20151216190036 Appc NPM: 4.2.2 App CLI: 5.1.0 Xcode 7.1 Node v4.2.3 *Closing Ticket.*