{ "id": "169805", "key": "TIMOB-25302", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-15T23:59:03.000+0000", "created": "2017-09-16T19:14:45.000+0000", "epic": { "id": 169755, "key": "TIMOB-25267", "name": "iOS: Add support for iPhone X", "summary": "iOS: Add support for iPhone X", "color": { "key": "color_5" }, "done": false }, "priority": { "name": "Low", "id": "4" }, "labels": [ "demo_app" ], "versions": [ { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-07-20T08:36:13.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "There are some utility API's in the iOS 11 GM seed that we might want to add to the SDK:\r\n- {{prefersHomeIndicatorAutoHidden}}\r\n - Returns a Boolean indicating whether the system displays a visual indicator for returning to the Home screen.\r\n - Could be exposed as a Ti.UI.Window boolean-property \"homeIndicatorAutoHidden\"\r\n\r\n- {{setNeedsUpdateOfHomeIndicatorAutoHidden}}\r\n - Notifies UIKit that your view controller updated its preference regarding the visual indicator for returning to the Home screen.\r\n - Could be exposed as a Ti.UI.Window event \"homeindicatorupdate\"\r\n", "attachment": [], "flagged": false, "summary": "iPhone X: Add new home-indicator related API's", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1028, "state": "closed", "name": "2018 Sprint 09 SDK", "startDate": "2018-04-22T22:53:08.928Z", "endDate": "2018-05-06T22:53:00.000Z", "completeDate": "2018-05-07T00:02:15.883Z", "originBoardId": 114 }, { "id": 1018, "state": "closed", "name": "2018 Sprint 07 SDK", "startDate": "2018-03-25T21:59:36.637Z", "endDate": "2018-04-08T21:59:00.000Z", "completeDate": "2018-04-08T17:55:14.467Z", "originBoardId": 114 }, { "id": 1034, "state": "closed", "name": "2018 Sprint 10 SDK", "startDate": "2018-05-07T00:03:21.636Z", "endDate": "2018-05-21T00:03:00.000Z", "completeDate": "2018-05-20T20:54:58.928Z", "originBoardId": 114 }, { "id": 1021, "state": "closed", "name": "2018 Sprint 08 SDK", "startDate": "2018-04-08T17:57:36.122Z", "endDate": "2018-04-22T17:57:00.000Z", "completeDate": "2018-04-22T22:51:19.120Z", "originBoardId": 114 }, { "id": 1008, "state": "closed", "name": "2018 Sprint 06 SDK", "startDate": "2018-03-11T22:18:04.396Z", "endDate": "2018-03-25T22:18:00.000Z", "completeDate": "2018-03-25T21:52:36.683Z", "originBoardId": 216 } ], "comment": { "comments": [ { "id": "434083", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/9804\r\n\r\nTest Case 1 -\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n homeIndicatorAutoHidden : false\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Open New Window'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n win1.open({modal:true});\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n homeIndicatorAutoHidden : true\r\n});\r\n\r\nvar btn1 = Ti.UI.createButton({\r\n title: 'Close'\r\n});\r\n\r\nbtn1.addEventListener('click', function() {\r\n win1.close();\r\n});\r\n\r\nwin1.add(btn1);\r\n{code}\r\n\r\nTest Case 2-\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttop : 100,\r\n title: 'Set Home Indicator true'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n win.setHomeIndicatorAutoHidden(true);\r\n Ti.API.info('homeIndicatorAutoHidden is ' +win.homeIndicatorAutoHidden);\r\n});\r\nwin.add(btn);\r\n\r\nvar btn1 = Ti.UI.createButton({\r\n\ttop : 200,\r\n title: 'Set Home Indicator false'\r\n});\r\n\r\nbtn1.addEventListener('click', function() {\r\n win.setHomeIndicatorAutoHidden(false);\r\n Ti.API.info('homeIndicatorAutoHidden is ' +win.homeIndicatorAutoHidden);\r\n});\r\nwin.add(btn1);\r\nwin.open();\r\n{code}\r\n\r\nTest Case 3 -\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n homeIndicatorAutoHidden : true\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Push Window'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n navWindow.openWindow(win1);\r\n});\r\n\r\nwin.add(btn);\r\n\r\nvar navWindow = Titanium.UI.iOS.createNavigationWindow({\r\n window: win\r\n});\r\nnavWindow.open();\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n homeIndicatorAutoHidden : false\r\n});\r\n\r\nvar btn1 = Ti.UI.createButton({\r\n title: 'Pop Window'\r\n});\r\n\r\nbtn1.addEventListener('click', function() {\r\n win1.close();\r\n});\r\n\r\nwin1.add(btn1);\r\n{code}\r\n\r\nTest Case 4 - \r\n\r\n{code:java}\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: 'blue',\r\n title: 'Blue',\r\n homeIndicatorAutoHidden : true\r\n});\r\nwin1.add(Ti.UI.createLabel({text: 'I am a blue window.'}));\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n backgroundColor: 'red',\r\n title: 'Red'\r\n});\r\nwin2.add(Ti.UI.createLabel({text: 'I am a red window.'}));\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n window: win1,\r\n title: 'Blue'\r\n}),\r\ntab2 = Ti.UI.createTab({\r\n window: win2,\r\n title: 'Red'\r\n}),\r\ntabGroup = Ti.UI.createTabGroup({\r\n tabs: [tab1, tab2]\r\n});\r\ntabGroup.open();\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-06T10:43:09.000+0000", "updated": "2018-02-06T10:43:09.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }