Difference between revisions of "Camera.availableDevices"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2017.8<br/>
'''<translate>Available since</translate>:''' Gideros 2017.8<br/>
+
'''Class:''' [[camera]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/camera|camera]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Returns a list of tables describing each available camera in the system. Each list entry has the following fields:
+
Returns a list of tables describing each available camera in the system.
*name* - Internal name of the device
 
*description* - Description of the device
 
*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>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (table) <translate>List of available cameras</translate><br/>
+
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'
 +
 
 +
=== Return values ===
 +
'''Returns''' (table) list of available cameras<br/>
  
 
{{Camera}}
 
{{Camera}}

Revision as of 07:10, 11 June 2023

Available since: Gideros 2017.8
Class: camera

Description

Returns a list of tables describing each available camera in the system.

(table) = camera.availableDevices()

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'

Return values

Returns (table) list of available cameras