cameraControlCreate

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
cameraControlCreate <controlName>
Associationscameracontrol
Summary

Creates a native camera control.

Introduced7.1
OSmac, windows, ios, android
Platformsdesktop, mobile
Parameters
NameTypeDescription
controlName

String to use to identify the control. The name must be unique amongst all existing controls.

Example
	cameraControlCreate "myFirstCamera"
	cameraControlCreate "myFirstCamera"
	cameraControlSet "myFirstCamera", "visible", true
	cameraControlSet "myFirstCamera", "rect", "50,50,500,500"
	cameraControlSet "myFirstCamera", "device", "front"
	cameraControlDo "myFirstCamera", "takePicture"
	put the result into url ("file:" & specialFolderPath("documents") & "/snapshot.jpg")
RelatedCommand: cameraControlDelete, cameraControlGet, cameraControlDo, cameraControlSet
Function: cameraControlGet, cameraControls, cameraControlTarget
Description

Low-level support for creating and manipulating camera controls on desktop and mobile platforms.

Native camera controls can only be created dynamically in script.

To destroy a camera control use: cameraControlDelete To configure a camera control use: cameraControlSet To read a property of a camera control use: cameraControlGet To control the behavior of a camera control use: cameraControlDo

Note: Camera controls are created with no initial video or audio output device selected. At least one of the "videoDevice" or "audioDevice" properties must be set to a recognized device ID value before recording can begin.