PhotoGalleryOptionsType

Simple object for specifying options to openPhotoGallery.

  • 0.8
  • 0.8
  • 0.8

NOTE This is an abstract type. Any object meeting this description can be used where this type is used.

Defined By

Properties

PhotoGalleryOptionsType
allowEditing : Boolean

Specifies if the media should be editable after capture/selection.

Specifies if the media should be editable after capture/selection.

  • 0.8
  • 0.8
PhotoGalleryOptionsType
allowMultiple : Boolean

Specifies if the user should be able to select multiple photos.

Specifies if the user should be able to select multiple photos.

The allowMultiple property is only available on Android API 18 and above.

  • 6.0.0
PhotoGalleryOptionsType
: Boolean
Specifies if the dialog should be animated upon showing and hiding. ...

Specifies if the dialog should be animated upon showing and hiding.

Default: true

  • 0.8
  • 0.8
PhotoGalleryOptionsType
: Number
PhotoGalleryOptionsType
: Boolean
Specifies if the photo gallery should be hidden automatically after the media selection is completed. ...

Specifies if the photo gallery should be hidden automatically after the media selection is completed.

Default: true

  • 0.8
  • 0.8
PhotoGalleryOptionsType
cancel : Callback<FailureResponse>

Function to call if the user presses the cancel button.

Function to call if the user presses the cancel button.

PhotoGalleryOptionsType
error : Callback<FailureResponse>

Function to call upon receiving an error.

Function to call upon receiving an error.

PhotoGalleryOptionsType
: String[]
Array of media type constants to allow. ...

Array of media type constants to allow. If you want to allow live photos with Titanium.Media.MEDIA_TYPE_LIVEPHOTO on iOS 9.1 and later, you also need to specify at least Titanium.Media.MEDIA_TYPE_PHOTO as a fallback. If you do not allow live photos, they still can be selected, but will be represented as a normal photo (static).

This API can be assigned the following constants:

Default: Only photo and video allowed.

  • 0.8
  • 0.8
PhotoGalleryOptionsType
popoverView : Titanium.UI.View

View to position the photo gallery popover on top of.

View to position the photo gallery popover on top of.

  • 0.8
PhotoGalleryOptionsType
success : Callback<CameraMediaItemType>

Function to call when the photo gallery is closed after a successful selection.

Function to call when the photo gallery is closed after a successful selection.