Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14218] Android: Implement apiName constants

GitHub Issuen/a
TypeSub-task
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-10-23T22:44:21.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 22, 2013 Sprint 22 API, Release 3.2.0
ComponentsAndroid
Labelsn/a
ReporterBryan Hughes
AssigneePing Wang
Created2013-06-13T19:09:06.000+0000
Updated2017-03-14T18:19:15.000+0000

Description

We need to implement the apiName constants. Every proxy will need to expose this constant. The spec is listed in TIMOB-13968

Comments

  1. Ping Wang 2013-10-22

    PR: https://github.com/appcelerator/titanium_mobile/pull/4826 Test case:
       var b = Ti.UI.createButton();
       
       Ti.API.info("************** Button: " + b.apiName+ ", " + b.getApiName());
       Ti.API.info("************** Yahoo: " + Ti.Yahoo.apiName + ", " + Ti.Yahoo.getApiName());
       Ti.API.info("************** API: " + Ti.API.apiName + ", " + Ti.API.getApiName());
       
       b.apiName = "changed";
       Ti.Yahoo.apiName = "changed";
       Ti.API.apiName = "changed";
       
       Ti.API.info("************** Button: " + b.apiName+ ", " + b.getApiName());
       Ti.API.info("************** Yahoo: " + Ti.Yahoo.apiName + ", " + Ti.Yahoo.getApiName());
       Ti.API.info("************** API: " + Ti.API.apiName + ", " + Ti.API.getApiName());
       
    Run the above test case, the "apiName" is read-only so the output should not be "changed".
  2. Lee Morris 2017-03-14

    Closing ticket as fixed.

JSON Source