Difference between revisions of "Camera.availableDevices"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2017.8<br/> === Description === Returns a list of tables describing each available camera in the system. Each list entry has the follo...")
 
Line 7: Line 7:
 
*position* - Position of the device, can be 'front','back' or 'unknown'
 
*position* - Position of the device, can be 'front','back' or 'unknown'
 
<source lang="lua">
 
<source lang="lua">
(table), = camera.availableDevices()
+
(table) = camera.availableDevices()
 
</source>
 
</source>
 
'''Returns''' (table) List of available cameras<br/>
 
'''Returns''' (table) List of available cameras<br/>

Revision as of 11:16, 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()

Returns (table) List of available cameras