# CameraMediaItemType

A media object from the camera or photo gallery.

Availability
0.8
0.8
9.2.0

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Properties

# code

Availability
3.1.0
3.1.0
9.2.0
code :Number

Error code. Returns 0.

Error code will be 0.


# cropRect

Availability
0.8
0.8
9.2.0
cropRect :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

Availability
3.1.0
3.1.0
9.2.0
error :String

Error message, if any returned.

Will be undefined.


# livePhoto

Availability
5.2.0
5.2.0
9.2.0

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


# media

Availability
0.8
0.8
9.2.0
media :Titanium.Blob

The media object, as a Titanium.Blob.


# mediaType

Availability
0.8
0.8
9.2.0
mediaType :String

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


# previewRect

Availability
0.8
previewRect :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

Availability
3.1.0
3.1.0
9.2.0
success :Boolean

Indicates if the operation succeeded. Returns true.

Returns true.