Versionmainunreleased
- 13.4.1latestnot in this version
- 13.4.0not in this version
- 13.3.1not in this version
- 13.3.0not in this version
- 13.2.0not in this version
- 13.1.1not in this version
- 13.1.0not in this version
- 13.0.1not in this version
- 13.0.0not in this version
- 12.8.0not in this version
- 12.7.1not in this version
- 12.7.0not in this version
- 12.6.4not in this version
- 12.6.3not in this version
- 12.6.2not in this version
- 12.6.1not in this version
- 12.6.0not in this version
- 12.5.1not in this version
- 12.5.0not in this version
- mainunreleased
PhotoGalleryOptionsType
Simple object for specifying options to openPhotoGallery.
Properties 14
Specifies if the media should be editable after capture/selection.
Specifies if the user should be able to select multiple photos.
The allowMultiple property is only available on Android API 18 and above.
Specifies if the video should be transcoded (using highest quality preset) . If set to false no video transcoding will be performed.
Default: true
Specifies if the dialog should be animated upon showing and hiding.
Default: true
Controls the type of arrow and position of the popover.
Specifies if the photo gallery should be hidden automatically after the media selection is completed.
Default: true
cancel
Callback<FailureResponse>Function to call if the user presses the cancel button.
error
Callback<FailureResponse>Function to call upon receiving an error.
Specifies the number of images a user can select at maximum.
Only available on Android API 21 and above and with allowMultiple:true
Array of media type constants to allow.
Live photos is only supported on the iOS platform, starting with iOS 9.1. If you want to allow live photos with Titanium.Media.MEDIA_TYPE_LIVEPHOTO, 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 static photo.
Default: Only photo and video allowed.
Do not include the blob in the result
View to position the photo gallery popover on top of.
Specifies number of media item that can be selected.
Setting this property to zero allows you to select maximum number of media supported by system.
This will work only when PhotoGalleryOptionsType.allowMultiple is true.
success
Callback<CameraMediaItemType> | Callback<CameraMediaMultipleItemsType>Function to call when the photo gallery is closed after a successful selection.
If PhotoGalleryOptionsType.allowMultiple is true, then CallbackCameraMediaMultipleItemsType will be invoked.
Otherwise CallbackCameraMediaItemType will be invoked for single selection.