Camera

Property

Function

Type

Fill mode

Image fill mode Actions editor: Property > Camera > Fill mode Code: widget.content.fillMode

enum Values: Stretch PreserveAspectFit PreserveAspectCrop Tile TileVertically TileHorizontally Pad

Device id

Camera device id Actions editor: Property > Camera > Device id Code: widget.content.deviceId

string

CapturedUrl

Not documented Actions editor: Property > Camera > CapturedUrl Code: widget.content.capturedUrl

string

Orientation

Not documented Actions editor: Property > Camera > Orientation Code: widget.content.orientation

int

Position

Not documented Actions editor: Property > Camera > Position Code: widget.content.position

int

Actions

Property

Function

Capture

Save camera frame to image Actions editor: Actions > Common > Capture Code: widget.content.script.actionCapture()

Turn on front camera

Actions editor: Actions > Common > Turn on front camera Code: widget.content.script.actionSetFrontPosition()

Turn on rear camera

Actions editor: Actions > Common > Turn on rear camera Code: widget.content.script.actionSetRearPosition()

Toggle front/rear

Actions editor: Actions > Common > Toggle front/rear Code: widget.content.script.actionToggleCameraPosition()

Events

Property

Function

Captured

Event when camera frame was captured Actions editor: Event > Captured Code: widget.content.script.eventCaptured()

Last updated