Difference between revisions of "Camera.availableDevices"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2017.8<br/>
 
'''Available since:''' Gideros 2017.8<br/>
 
=== Description ===
 
=== Description ===
Returns a list of tables describing each available camera in the system. Each list entry has the following fields:
+
<translate>Returns a list of tables describing each available camera in the system. Each list entry has the following fields:
 
*name* - Internal name of the device
 
*name* - Internal name of the device
 
*description* - Description of the device
 
*description* - Description of the device
*position* - Position of the device, can be 'front','back' or 'unknown'
+
*position* - Position of the device, can be 'front','back' or 'unknown'</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(table) = camera.availableDevices()
 
(table) = camera.availableDevices()
 
</source>
 
</source>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (table) List of available cameras<br/>
+
'''Returns''' (table) <translate>List of available cameras</translate><br/>

Revision as of 13:32, 23 August 2018

Available since: Gideros 2017.8

Description

Returns a list of tables describing each available camera in the system. Each list entry has the following fields: *name* - Internal name of the device *description* - Description of the device *position* - Position of the device, can be 'front','back' or 'unknown'

(table) = camera.availableDevices()

Return values

Returns (table) List of available cameras