Skip to main content
Use this API to display images in a fullscreen gallery viewer.

Parameters

PropertyTypeRequiredDescription
urlsArrayYesArray of image URLs to preview
currentNumberNoIndex of initial image (default: 0)
successFunctionNoCallback on success
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Code Example

my.previewImage({
  urls: [
    'https://example.com/image1.jpg',
    'https://example.com/image2.jpg'
  ],
  current: 0
});

my.chooseImage

Choose images

my.getImageInfo

Get image info