[TIMOB-14218] Android: Implement apiName constants
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-10-23T22:44:21.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 22, 2013 Sprint 22 API, Release 3.2.0 |
| Components | Android |
| Labels | n/a |
| Reporter | Bryan Hughes |
| Assignee | Ping Wang |
| Created | 2013-06-13T19:09:06.000+0000 |
| Updated | 2017-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
PR: https://github.com/appcelerator/titanium_mobile/pull/4826 Test case:
Run the above test case, the "apiName" is read-only so the output should not be "changed".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());Closing ticket as fixed.