[TIMOB-25846] TiAPI: Add method "hidePhotoGallery()" to hide photo-gallery manually,
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android, iOS, Windows |
Labels | n/a |
Reporter | sonufana4u |
Assignee | Kota Iguchi |
Created | 2018-03-07T09:36:04.000+0000 |
Updated | 2018-06-21T17:18:55.000+0000 |
Description
Add a method hidePhotoGallery() like hideCamera() or hideMusicLibrary() for iOS to close gallery manually.In some scenario it requires.
Hi [~sonufana4u], do you have links for the native documentation on iOS & Android?
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:*EDIT*: Good news! As the camera uses the same underlaying API, you can also use
Ti.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.@hans @rene - Thanks a lot for considering this.I'll try above suggestion.(y)