Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-901] Titanium.Media.isCameraSupported returns object not Boolean

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:36.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:38:53.000+0000
Updated2011-04-17T01:54:36.000+0000

Description

self-explanatory

Comments

  1. Blain Hamon 2011-04-15

    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;

  2. Nolan Wright 2011-04-15

    probably should be isCameraSupported

  3. Blain Hamon 2011-04-15

    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.

JSON Source