{ "id": "171252", "key": "TIMOB-25846", "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": [], "resolution": null, "resolutiondate": null, "created": "2018-03-07T09:36:04.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-06-21T17:18:55.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Add a method hidePhotoGallery() like hideCamera() or hideMusicLibrary() for iOS to close gallery manually.In some scenario it requires.", "attachment": [], "flagged": false, "summary": "TiAPI: Add method \"hidePhotoGallery()\" to hide photo-gallery manually,", "creator": { "name": "sonufana4u", "key": "sonufana4u", "displayName": "sonufana4u", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "sonufana4u", "key": "sonufana4u", "displayName": "sonufana4u", "active": true, "timeZone": "Asia/Kolkata" }, "environment": null, "comment": { "comments": [ { "id": "435291", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi [~sonufana4u], do you have links for the native documentation on iOS & Android?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-07T10:21:26.000+0000", "updated": "2018-03-07T10:21:26.000+0000" }, { "id": "435293", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "On iOS, it is technically possible to hide the photo-gallery (aka {{UIImagePickerController}}). If the same is possible on Android and Windows, we could consider adding an API for that. Only doing it on iOS would be a bad parity decision, as we need to move forward achieving API's for all platforms. For now, you can use Hyperloop to hide the top most controller as well (using the key-window), something like:\r\n{code:js}\r\nvar TiApp = require('Titanium/TiApp');\r\nvar topPresentedController = TiApp.getController().presentingViewController;\r\ntopPresentedController.dismissViewControllerAnimatedCompletion(true, function(e) {\r\n Ti.API.info('Photo Gallery was dismissed successfully!');\r\n});\r\n{code}\r\n\r\n*EDIT*: Good news! As the camera uses the same underlaying API, you can also use {{\t\t\t\tTi.Media.hideCamera()}} for closing the photo gallery on iOS! But we should still expose it as an own API in the future to prevent possible confusion.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-07T10:39:53.000+0000", "updated": "2018-03-07T15:58:08.000+0000" }, { "id": "435375", "author": { "name": "sonufana4u", "key": "sonufana4u", "displayName": "sonufana4u", "active": true, "timeZone": "Asia/Kolkata" }, "body": "@hans @rene - Thanks a lot for considering this.I'll try above suggestion.(y)", "updateAuthor": { "name": "sonufana4u", "key": "sonufana4u", "displayName": "sonufana4u", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2018-03-08T05:04:58.000+0000", "updated": "2018-03-08T05:04:58.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }