Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9465] TiAPI: Geolocation.hasCompass function vs property

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-15T17:51:21.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsTiAPI
Labelsapi, parity
ReporterJosh Roesslein
AssigneeEric Merriman
Created2012-06-08T09:49:34.000+0000
Updated2017-06-15T17:51:21.000+0000

Description

Android and iOS have an API for accessing the device's compass. Since not all devices have a hardware compass, you must test for its existence. Android implements this as a getter property called "hasCompass". Android also provides a function called "getHasCompass". iOS implements this as a method called "hasCompass". This creates an unnecessary parity difference. We should determine if this property should be changed on one of the platforms to be either a function or getter property. We could also introduce a new property/function to avoid breaking changes to this API.

Comments

  1. Lee Morris 2017-06-15

    Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.

JSON Source