[TIMOB-9335] iOS: New feature to add a "paused" event listener
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-06-04T15:13:54.000+0000 |
| Affected Version/s | Release 2.0.1 |
| Fix Version/s | Release 2.1.0, Sprint 2012-12 API, Release 2.0.3 |
| Components | iOS |
| Labels | api, module_titanium, qe-testadded |
| Reporter | Varun Joshi |
| Assignee | Vishal Duggal |
| Created | 2012-05-31T17:24:28.000+0000 |
| Updated | 2012-08-07T10:56:42.000+0000 |
Test Code
var win = Ti.UI.createWindow({backgroundColor:'white'}); var l = Titanium.UI.createLabel({ text:'See Log for output' }); win.add(l); win.open(); Ti.App.addEventListener('pause',function(e){ Ti.API.info('PAUSE EVENT'); }) Ti.App.addEventListener('paused',function(e){ Ti.API.info('PAUSED EVENT'); }) Ti.App.addEventListener('resume',function(e){ Ti.API.info('RESUME EVENT'); }) Ti.App.addEventListener('resumed',function(e){ Ti.API.info('RESUMED EVENT'); })PR merged https://github.com/appcelerator/titanium_mobile/pull/2314
PR for 2_0_X merged https://github.com/appcelerator/titanium_mobile/pull/2322
Closing as Fixed. Verified via Vishal's test code. SDK: 2.1.0.v20120606105255 Studio: 2.1.0.201206051612 OS: Snow Leopard Devices Tested: iPhone Simulator 5.0, iPad2 4.3.5
Also verified on: 2.0.3.v20120605111708