[TIMOB-901] Titanium.Media.isCameraSupported returns object not Boolean
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:54:36.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.4.0 |
| Components | iOS |
| Labels | n/a |
| Reporter | Nolan Wright |
| Assignee | Blain Hamon |
| Created | 2011-04-15T02:38:53.000+0000 |
| Updated | 2011-04-17T01:54:36.000+0000 |
Description
self-explanatory
It looks like it's designed to be a method, not a property. That is, Titanium.Media.isCameraSupported returns a function which returns a bool.
Which is the proper use?
var hasCamera = Titanium.Media.isCameraSupported();
or
var hasCamera = Titanium.Media.isCameraSupported;
probably should be isCameraSupported
Typo in the commit: [master 6c05a1d] Claoses #901 . isCameraSupported was a function from 0.9-1.3, but was a property in 0.8 and before. It doesn't look like Android has this method. Updating code and docs to change isCameraSupported to a property.