Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android): custom gallery folder names #13961

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented Jan 5, 2024

Currently if you use saveToPhotoGallery the images will be added into the normal Pictures folder on Android. You can't create any subfolders like WhatsApp is doing. This PR will add a new property galleryFolder where you can add a string that will be used as a subfolder:

Screenshot_20240105-111221

var win = Ti.UI.createWindow()
win.open();
win.addEventListener("click", function() {
	Ti.Media.requestCameraPermissions(function(e) {
		if (e.success) {
			Ti.Media.showCamera({
				saveToPhotoGallery: true,
				galleryFolder: "myCustomFolder",
				success: function(e) {}
			})
		}
	});
})

Todo:

  • iOS ?
  • documentation

@m1ga m1ga marked this pull request as ready for review January 5, 2024 10:15
@m1ga m1ga added the feature label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant