[TIMOB-20485] LivePhoto: Proxy should override apiName
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-08-05T18:30:51.000+0000 |
Affected Version/s | Release 5.2.0 |
Fix Version/s | Release 5.4.0 |
Components | iOS |
Labels | ios, livephotos, qe-5.4.0 |
Reporter | Fokke Zandbergen |
Assignee | Hans Knöchel |
Created | 2016-02-29T13:59:21.000+0000 |
Updated | 2016-08-05T18:30:57.000+0000 |
Description
When I read
Ti.UI.iOS.LivePhoto.apiName
it return Ti.Proxy
and logs:
[ERROR] Subclasses must override the apiName API endpoint.
Which comes from:
https://github.com/appcelerator/titanium_mobile/blob/bdfbe4d530e81caf440b595351bc84bef79f27d4/iphone/Classes/TiProxy.m#L1310
PR: https://github.com/appcelerator/titanium_mobile/pull/7785
Demo:
Expected result: "Ti.UI.iOS.LivePhoto" *EDIT*: See the below demo-code with the current usage instead.
*Reopening*,
Ti.API.warn(Ti.UI.iOS.LivePhoto.apiName)
returns an undefined object error. *ENV**Error*
*App.js used*
Hey Josh, sorry, my mistake in providing the test-case. Of course, we cannot check the
apiName
on the LivePhoto itself. Updated demo-code attached. Now, we log theapiName
after a live-photo is selected from the library, which returns aTi.UI.iOS.LivePhoto
instance. Thanks! Demo:Verified as fixed, thanks [~hansknoechel]. Tested on:
*Closing ticket*