Test if I can export image/movie into the camera roll

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Test if I can export image/movie into the camera roll

Post by Mag » Tue Jul 02, 2013 7:33 am

Hi all,

As you know iOS users can allow or not an app to access to the camera roll. Usually iOS asks the permission the first time an app that has Photo/Video features is launched, then user has to go here to change its choiche: Settings -> Privacy -> Photos.

I'm searching a way to test if I can export an image or movie to device's camera roll before/without to try to save an item. Ideas?

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Test if I can export image/movie into the camera roll

Post by LCNeil » Wed Jul 03, 2013 8:19 am

Dear Mag,

Thank you for your request.

If I understand your question correctly, I believe you are looking for something like the mobileExportImageToAlbum command.

This allows you to save an image to the user's photo album.

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
-

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Test if I can export image/movie into the camera roll

Post by Mag » Thu Jul 04, 2013 10:15 am

Thank you so much for your replay Neil. Actually what I really need to know is the availability of the Camera Roll for the app. In other words if user has allowed the use of the camera roll by the app. The use of mobileExportImageToAlbum is great, but it forced me to export an image and then to see the results, I would like to know this info without the need to export an image. A sort of:

Code: Select all

canMobileExportImageToAlbum()  -- pseudocode
If the result is false then I can warn the user:
MyApp can not access the camera roll. To solve this problem go to Settings -> Privacy -> Photos and enable MyApp.

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: Test if I can export image/movie into the camera roll

Post by Mag » Fri Jul 05, 2013 11:19 am

Anyone has an idea for a way to test the availability of camera roll?

Post Reply