Skip to content
Titanium SDK
Version12.6.1

You are reading 12.6.1. See this page in 13.4.1.

CameraMediaItemType

pseudoAndroidiPhoneiPadmacOS

Extends SuccessResponseErrorResponse

A media object from the camera or photo gallery.

Properties 9

code

Numbersince 3.1.0

Error code. Returns 0.

Error code will be 0.

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

Stringsince 3.1.0

Error message, if any returned.

Will be undefined.

mediaType

String

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

path

StringAndroidsince 12.5.0

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

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

Booleansince 3.1.0

Indicates if the operation succeeded. Returns true.

Returns true.