gallery by Trigger.io

Currently displaying version

gallery: Gallery viewer and multiple image selection

The forge.gallery namespace allows you to display a Gallery viewer that can select multiple images or videos.

API

forge.gallery.getImages(success, error)

iOS, Android

Returns an array of file objects for images selected by the user from their device's gallery.

Parameters:
success
function(files) callback to be invoked when no errors occur (argument is an array of returned files)
error
function(content) called with details of any error which may occur

forge.gallery.getVideos(success, error)

iOS

Returns an array of file objects for videos selected by the user from their device's gallery.

Parameters:
success
function(files) callback to be invoked when no errors occur (argument is an array of returned files)
error
function(content) called with details of any error which may occur