[TIMOB-13968] Specification: Create "apiName" property specification
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-06-13T19:06:58.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 12 JS, 2013 Sprint 12, Release 3.2.0 |
| Components | Specification |
| Labels | n/a |
| Reporter | Bryan Hughes |
| Assignee | Bryan Hughes |
| Created | 2013-05-23T19:04:03.000+0000 |
| Updated | 2013-06-13T19:12:14.000+0000 |
Description
The classname property shall be a property on Ti.Proxy that returns a string describing the type of proxy. The format will match the global namespace name, so, for example, a button will have an apiName value of "Ti.UI.Button". This value shall be a constant.
As noted in the related ticket, this should likely be a different name to avoid confusion with Ti.UI.TableViewRow.classname. I made a few suggestions, but I like *apiName*.
The architecture council approved the following spec:
- name: apiName summary: The name of the API that this proxy corresponds to. description: | Each proxy will expose the name of the API that corresponds to this proxy. The value of this constant is the fully qualified name of the API. For example, a [Button](Titanium.UI.Button) will return "Ti.UI.Button" for apiName. permission: read-only type: String since: "3.1.2"