Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20001] iOS: Rename Ti.Media.CAMERA_AUTHORIZATION_NOT_DETERMINED to UNKNOWN

GitHub Issuen/a
TypeImprovement
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2015-11-30T04:46:08.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.2.0
ComponentsiOS
Labelsn/a
ReporterFokke Zandbergen
AssigneeChee Kiat Ng
Created2015-11-17T10:09:00.000+0000
Updated2016-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?

Comments

  1. Chee Kiat Ng 2015-11-27

    PR here: https://github.com/appcelerator/titanium_mobile/pull/7506

    Steps to test

    Use this sample code:
       Ti.API.info(Ti.Media.CAMERA_AUTHORIZATION_NOT_DETERMINED);
       Ti.API.info(Ti.Media.CAMERA_AUTHORIZATION_UNKNOWN);
       

    Expected Result

       [WARN] Ti.Media.CAMERA_AUTHORIZATION_NOT_DETERMINED DEPRECATED in 5.2.0, in favor of Ti.Media.CAMERA_AUTHORIZATION_UNKNOWN
       [INFO] 0
       [INFO] 0
       
  2. Srikanth Sombhatla 2015-11-30

    PR tested working fine!
  3. Harry Bryant 2016-01-14

    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.*

JSON Source