CameraOptionsType

Simple object for specifying options to showCamera.

  • 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

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

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

Default: false

  • 0.8
  • 0.8
CameraOptionsType
: 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
CameraOptionsType
arrowDirection : Number

Controls the type of arrow and position of the popover.

Controls the type of arrow and position of the popover.

This property is only used if the camera is displayed in a popover (inPopOver is true).

This API can be assigned the following constants:

  • 0.8
CameraOptionsType
: Boolean
Specifies if the camera should be hidden automatically after the media capture is completed. ...

Specifies if the camera should be hidden automatically after the media capture is completed.

On Android, this property is considered only if overlay is also set. When an overlay is not set, the default Android Camera Activity is used, which is only capable of reporting back the results of one taken photo, making autohide meaningless in that context.

Default: true

  • 3.2.0
  • 0.8
  • 0.8
CameraOptionsType
: Boolean
Determines if the camera preview should rotate or not. ...

Determines if the camera preview should rotate or not.

Set to false to disable rotating the camera preview. The camera preview will remain in the same orientation it was opened in.

Set to true to allow the camera preview to rotate when the device rotates. Black bars will appear and disappear as the device is rotated.

Default: true

  • 3.4.0
CameraOptionsType
cancel : Callback<FailureResponse>

Function to call if the user presses the cancel button.

Function to call if the user presses the cancel button.

CameraOptionsType
error : Callback<FailureResponse>

Function to call upon receiving an error.

Function to call upon receiving an error.

CameraOptionsType
: Boolean
Show the camera in a popover. ...

Show the camera in a popover.

Use inPopOver: true on iPad to display the camera view in a popover.

Default: false

  • 0.8
CameraOptionsType
: String[]
Array of media type constants to allow. ...

Array of media type constants to allow. Note: If you want to select live photos, iOS only allows you to select existing live photos from the gallery, capturing new live photos is not supported by iOS public API, yet.

This API can be assigned the following constants:

Default: Both photo and video allowed.

  • 5.4.0
  • 0.8
  • 0.8
CameraOptionsType
: Titanium.UI.View
View to added as an overlay to the camera UI (on top). ...

View to added as an overlay to the camera UI (on top).

On iOS, the overlay view is usually used in conjunction with showControls: false. The transform property can be used to scale and position the camera preview inside the overlay view.

Default: no overlay view

CameraOptionsType
popoverView : Titanium.UI.View

View to position the camera or photo gallery popover on top of.

View to position the camera or photo gallery popover on top of.

This property is only used if the camera is displayed in a popover (inPopOver is true).

  • 0.8
CameraOptionsType
: Boolean
Specifies if the media should be saved to the photo gallery upon successful capture. ...

Specifies if the media should be saved to the photo gallery upon successful capture.

Default: false

CameraOptionsType
: Boolean
Indicates if the built-in camera controls should be displayed. ...

Indicates if the built-in camera controls should be displayed.

Default: true

  • 0.8
  • 0.8
CameraOptionsType
success : Callback<CameraMediaItemType>

Function to call when the camera is closed after a successful capture/selection.

Function to call when the camera is closed after a successful capture/selection.

CameraOptionsType
: Titanium.UI.2DMatrix
Transformation matrix to apply to the camera or photogallery view. ...

Transformation matrix to apply to the camera or photogallery view.

Can be used to size and position the camera or photogallery view behind an overlay view. iOS 10 note: There was a known iOS 10 issue caused by Apple that breaks the native camera transformation. Apple fixed this issue in the iOS 10.2 release.

Default: identity matrix

  • 0.8
  • 0.8
CameraOptionsType
videoMaximumDuration : Number

Maximum duration (in milliseconds) to allow video capture before completing.

Maximum duration (in milliseconds) to allow video capture before completing.

  • 5.4.0
  • 0.8
  • 0.8
CameraOptionsType
: Number
Constant to indicate the video quality during capture. ...

Constant to indicate the video quality during capture.

This API can be assigned the following constants:

  • 5.4.0
  • 0.8
  • 0.8
CameraOptionsType
: Number
Opens the camera with the specified camera direction. ...

Opens the camera with the specified camera direction.

This API can be assigned the following constants:

  • 5.4.0