Skip to content

Titanium.Media.CameraMediaItemType

A media object from the camera or photo gallery.

Extends: SuccessResponse

Properties #

code#

Type: Number

Error code. Returns 0.

Error code will be 0.

cropRect#

Type: Dimension

Simple object defining the user's selected crop rectangle, or null if the user has not edited the photo. width/height values are assumed to be in pixels.

error#

Type: String

Error message, if any returned.

Will be undefined.

livePhoto#

Type: Titanium.UI.iOS.LivePhoto

The live photo object, as a Titanium.UI.iOS.LivePhoto and
undefined if no live photo is selected.

media#

Type: Titanium.Blob

The media object, as a Blob.

mediaType#

Type: String

The type of media, either MEDIA_TYPE_PHOTO, MEDIA_TYPE_LIVEPHOTO or MEDIA_TYPE_VIDEO defined in Titanium.Media.

path#

Type: String

The path of the image when returning data from the gallery.

previewRect#

Type: Size

Simple object defining the preview image size. This will be undefined when custom camera overlay is not used. Values are assumed to be in pixels.

success#

Type: Boolean

Indicates if the operation succeeded. Returns true.

Returns true.

Titanium SDK Documentation